Skip to content

Commit 80a513e

Browse files
spandruvadajwrdegoede
authored andcommitted
tools/power/x86/intel-speed-select: Increase number of CPUs displayed
Currently max 128 CPUs can be displayed in the enable CPU list. Double the range. Since the size is big for stack allocation, change to static. Here changing to static is fine as these functions are called in serial. Signed-off-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 38fa152 commit 80a513e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ static void _isst_pbf_display_information(struct isst_id *id, FILE *outf, int le
199199
struct isst_pbf_info *pbf_info,
200200
int disp_level)
201201
{
202-
char header[256];
203-
char value[512];
202+
static char header[256];
203+
static char value[1024];
204204

205205
snprintf(header, sizeof(header), "speed-select-base-freq-properties");
206206
format_and_print(outf, disp_level, header, NULL);
@@ -338,8 +338,8 @@ void isst_ctdp_display_core_info(struct isst_id *id, FILE *outf, char *prefix,
338338
void isst_ctdp_display_information(struct isst_id *id, FILE *outf, int tdp_level,
339339
struct isst_pkg_ctdp *pkg_dev)
340340
{
341-
char header[256];
342-
char value[512];
341+
static char header[256];
342+
static char value[1024];
343343
static int level;
344344
int trl_max_levels = isst_get_trl_max_levels();
345345
int i;

0 commit comments

Comments
 (0)