Skip to content

Commit 27263b3

Browse files
Yajun Dengrafaeljw
authored andcommitted
ACPI: processor: idle: Expose max_cstate/nocst/bm_check_disable read-only in sysfs
This will allow super users to verify the module parameters in question when changed via kernel command line. The parameters "nocst/bm_check_disable" are only used for enable/disable, so change them from integer to bool. Signed-off-by: Yajun Deng <[email protected]> [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 672c0c5 commit 27263b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/acpi/processor_idle.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
#define ACPI_IDLE_STATE_START (IS_ENABLED(CONFIG_ARCH_HAS_CPU_RELAX) ? 1 : 0)
3838

3939
static unsigned int max_cstate __read_mostly = ACPI_PROCESSOR_MAX_POWER;
40-
module_param(max_cstate, uint, 0000);
41-
static unsigned int nocst __read_mostly;
42-
module_param(nocst, uint, 0000);
43-
static int bm_check_disable __read_mostly;
44-
module_param(bm_check_disable, uint, 0000);
40+
module_param(max_cstate, uint, 0400);
41+
static bool nocst __read_mostly;
42+
module_param(nocst, bool, 0400);
43+
static bool bm_check_disable __read_mostly;
44+
module_param(bm_check_disable, bool, 0400);
4545

4646
static unsigned int latency_factor __read_mostly = 2;
4747
module_param(latency_factor, uint, 0644);

0 commit comments

Comments
 (0)