From: Artem Bityutskiy Date: Wed, 19 Apr 2023 14:39:47 +0000 (+0300) Subject: intel_idle: mark few variables as __read_mostly X-Git-Tag: v6.6.17~4931^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd4468295e7a335319c10affdf594b56f1e6c0a4;p=platform%2Fkernel%2Flinux-rpi.git intel_idle: mark few variables as __read_mostly The intention is to clean up the code and make it look a bit more consistent. Mark all unitialized module parameter variables as __read_mostly, not just one of them. The other parameters are read-mostly too. Signed-off-by: Artem Bityutskiy Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 35bd284..aa2d19d 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -66,8 +66,8 @@ static struct cpuidle_driver intel_idle_driver = { }; /* intel_idle.max_cstate=0 disables driver */ static int max_cstate = CPUIDLE_STATE_MAX - 1; -static unsigned int disabled_states_mask; -static unsigned int preferred_states_mask; +static unsigned int disabled_states_mask __read_mostly; +static unsigned int preferred_states_mask __read_mostly; static bool force_irq_on __read_mostly; static struct cpuidle_device __percpu *intel_idle_cpuidle_devices;