Skip to content

Commit bd44682

Browse files
dedekindrafaeljw
authored andcommitted
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 <artem.bityutskiy@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 4152379 commit bd44682

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/idle/intel_idle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ static struct cpuidle_driver intel_idle_driver = {
6666
};
6767
/* intel_idle.max_cstate=0 disables driver */
6868
static int max_cstate = CPUIDLE_STATE_MAX - 1;
69-
static unsigned int disabled_states_mask;
70-
static unsigned int preferred_states_mask;
69+
static unsigned int disabled_states_mask __read_mostly;
70+
static unsigned int preferred_states_mask __read_mostly;
7171
static bool force_irq_on __read_mostly;
7272

7373
static struct cpuidle_device __percpu *intel_idle_cpuidle_devices;

0 commit comments

Comments
 (0)