diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2017-06-14 09:02:40 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-06-27 23:08:12 -0400 |
commit | 624e46d03576dd4d5667bad9d2ef814135d0075c (patch) | |
tree | 2938e87f1c230f411b58567a6663c9b00c32b33a /drivers/cpuidle | |
parent | 3fc5ee927ff4ffed6aa2fcd44d2fbf07ac893cdc (diff) |
cpuidle: powerpc: read mostly for common globals
Ensure these don't get put into bouncing cachelines.
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r-- | drivers/cpuidle/cpuidle-powernv.c | 10 | ||||
-rw-r--r-- | drivers/cpuidle/cpuidle-pseries.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/cpuidle/cpuidle-powernv.c b/drivers/cpuidle/cpuidle-powernv.c index 50b3c2e0306f..9d03326ac05e 100644 --- a/drivers/cpuidle/cpuidle-powernv.c +++ b/drivers/cpuidle/cpuidle-powernv.c | |||
@@ -32,18 +32,18 @@ static struct cpuidle_driver powernv_idle_driver = { | |||
32 | .owner = THIS_MODULE, | 32 | .owner = THIS_MODULE, |
33 | }; | 33 | }; |
34 | 34 | ||
35 | static int max_idle_state; | 35 | static int max_idle_state __read_mostly; |
36 | static struct cpuidle_state *cpuidle_state_table; | 36 | static struct cpuidle_state *cpuidle_state_table __read_mostly; |
37 | 37 | ||
38 | struct stop_psscr_table { | 38 | struct stop_psscr_table { |
39 | u64 val; | 39 | u64 val; |
40 | u64 mask; | 40 | u64 mask; |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static struct stop_psscr_table stop_psscr_table[CPUIDLE_STATE_MAX]; | 43 | static struct stop_psscr_table stop_psscr_table[CPUIDLE_STATE_MAX] __read_mostly; |
44 | 44 | ||
45 | static u64 snooze_timeout; | 45 | static u64 snooze_timeout __read_mostly; |
46 | static bool snooze_timeout_en; | 46 | static bool snooze_timeout_en __read_mostly; |
47 | 47 | ||
48 | static int snooze_loop(struct cpuidle_device *dev, | 48 | static int snooze_loop(struct cpuidle_device *dev, |
49 | struct cpuidle_driver *drv, | 49 | struct cpuidle_driver *drv, |
diff --git a/drivers/cpuidle/cpuidle-pseries.c b/drivers/cpuidle/cpuidle-pseries.c index 7b12bb2ea70f..a404f352d284 100644 --- a/drivers/cpuidle/cpuidle-pseries.c +++ b/drivers/cpuidle/cpuidle-pseries.c | |||
@@ -25,10 +25,10 @@ struct cpuidle_driver pseries_idle_driver = { | |||
25 | .owner = THIS_MODULE, | 25 | .owner = THIS_MODULE, |
26 | }; | 26 | }; |
27 | 27 | ||
28 | static int max_idle_state; | 28 | static int max_idle_state __read_mostly; |
29 | static struct cpuidle_state *cpuidle_state_table; | 29 | static struct cpuidle_state *cpuidle_state_table __read_mostly; |
30 | static u64 snooze_timeout; | 30 | static u64 snooze_timeout __read_mostly; |
31 | static bool snooze_timeout_en; | 31 | static bool snooze_timeout_en __read_mostly; |
32 | 32 | ||
33 | static inline void idle_loop_prolog(unsigned long *in_purr) | 33 | static inline void idle_loop_prolog(unsigned long *in_purr) |
34 | { | 34 | { |