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 <srinivas.pandruvada@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
38fa152b3d
commit
80a513e3f7
@ -199,8 +199,8 @@ static void _isst_pbf_display_information(struct isst_id *id, FILE *outf, int le
|
||||
struct isst_pbf_info *pbf_info,
|
||||
int disp_level)
|
||||
{
|
||||
char header[256];
|
||||
char value[512];
|
||||
static char header[256];
|
||||
static char value[1024];
|
||||
|
||||
snprintf(header, sizeof(header), "speed-select-base-freq-properties");
|
||||
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,
|
||||
void isst_ctdp_display_information(struct isst_id *id, FILE *outf, int tdp_level,
|
||||
struct isst_pkg_ctdp *pkg_dev)
|
||||
{
|
||||
char header[256];
|
||||
char value[512];
|
||||
static char header[256];
|
||||
static char value[1024];
|
||||
static int level;
|
||||
int trl_max_levels = isst_get_trl_max_levels();
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user