Skip to content

Commit b1d12ce

Browse files
committed
tools/power/x86/intel-speed-select: Change path for caching topology info
We want to cache the topology info to a file, which is not preserved across boot cycle. The current storage in /tmp is getting preserved. So change the path from /tmp/isst_cpu_topology.dat to /var/run/isst_cpu_topology.dat. Signed-off-by: Srinivas Pandruvada <[email protected]>
1 parent f9e1104 commit b1d12ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/power/x86/intel-speed-select/isst-config.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int out_format_is_json(void)
198198

199199
static int get_stored_topology_info(int cpu, int *core_id, int *pkg_id, int *die_id)
200200
{
201-
const char *pathname = "/tmp/isst_cpu_topology.dat";
201+
const char *pathname = "/var/run/isst_cpu_topology.dat";
202202
struct cpu_topology cpu_top;
203203
FILE *fp;
204204
int ret;
@@ -230,7 +230,7 @@ static int get_stored_topology_info(int cpu, int *core_id, int *pkg_id, int *die
230230

231231
static void store_cpu_topology(void)
232232
{
233-
const char *pathname = "/tmp/isst_cpu_topology.dat";
233+
const char *pathname = "/var/run/isst_cpu_topology.dat";
234234
FILE *fp;
235235
int i;
236236

@@ -247,6 +247,8 @@ static void store_cpu_topology(void)
247247
return;
248248
}
249249

250+
fprintf(stderr, "Caching topology information\n");
251+
250252
for (i = 0; i < topo_max_cpus; ++i) {
251253
struct cpu_topology cpu_top;
252254

0 commit comments

Comments
 (0)