diff options
author | Andreas Mohr <andi@rhlx01.fht-esslingen.de> | 2006-04-27 05:25:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-05-14 00:03:48 -0400 |
commit | b6835052a6aa00536343b6d2127fc65cd814a040 (patch) | |
tree | b5ea66977f0963c6d9e0668e55c60592957da6b8 /drivers/acpi | |
parent | 09047e75f69428dcfa977b326256085154068b65 (diff) |
ACPI: apply "__read_mostly" to processor_idle.c loop module parameters and friends
make pm_idle_save, nocst and bm_history __read_mostly
remove initializer from static 'first_run'.
Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/processor_idle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 80fa43471f48..3b97a5eae9e8 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -54,10 +54,10 @@ ACPI_MODULE_NAME("acpi_processor") | |||
54 | #define US_TO_PM_TIMER_TICKS(t) ((t * (PM_TIMER_FREQUENCY/1000)) / 1000) | 54 | #define US_TO_PM_TIMER_TICKS(t) ((t * (PM_TIMER_FREQUENCY/1000)) / 1000) |
55 | #define C2_OVERHEAD 4 /* 1us (3.579 ticks per us) */ | 55 | #define C2_OVERHEAD 4 /* 1us (3.579 ticks per us) */ |
56 | #define C3_OVERHEAD 4 /* 1us (3.579 ticks per us) */ | 56 | #define C3_OVERHEAD 4 /* 1us (3.579 ticks per us) */ |
57 | static void (*pm_idle_save) (void); | 57 | static void (*pm_idle_save) (void) __read_mostly; |
58 | module_param(max_cstate, uint, 0644); | 58 | module_param(max_cstate, uint, 0644); |
59 | 59 | ||
60 | static unsigned int nocst = 0; | 60 | static unsigned int nocst __read_mostly; |
61 | module_param(nocst, uint, 0000); | 61 | module_param(nocst, uint, 0000); |
62 | 62 | ||
63 | /* | 63 | /* |
@@ -67,7 +67,7 @@ module_param(nocst, uint, 0000); | |||
67 | * 100 HZ: 0x0000000F: 4 jiffies = 40ms | 67 | * 100 HZ: 0x0000000F: 4 jiffies = 40ms |
68 | * reduce history for more aggressive entry into C3 | 68 | * reduce history for more aggressive entry into C3 |
69 | */ | 69 | */ |
70 | static unsigned int bm_history = | 70 | static unsigned int bm_history __read_mostly = |
71 | (HZ >= 800 ? 0xFFFFFFFF : ((1U << (HZ / 25)) - 1)); | 71 | (HZ >= 800 ? 0xFFFFFFFF : ((1U << (HZ / 25)) - 1)); |
72 | module_param(bm_history, uint, 0644); | 72 | module_param(bm_history, uint, 0644); |
73 | /* -------------------------------------------------------------------------- | 73 | /* -------------------------------------------------------------------------- |
@@ -1081,7 +1081,7 @@ int acpi_processor_power_init(struct acpi_processor *pr, | |||
1081 | struct acpi_device *device) | 1081 | struct acpi_device *device) |
1082 | { | 1082 | { |
1083 | acpi_status status = 0; | 1083 | acpi_status status = 0; |
1084 | static int first_run = 0; | 1084 | static int first_run; |
1085 | struct proc_dir_entry *entry = NULL; | 1085 | struct proc_dir_entry *entry = NULL; |
1086 | unsigned int i; | 1086 | unsigned int i; |
1087 | 1087 | ||