Skip to content
Snippets Groups Projects
Commit 436215c4 authored by David Arcari's avatar David Arcari
Browse files

intel_idle: do not sprinkle module parameter definitions around

JIRA: https://issues.redhat.com/browse/RHEL-11351



commit 4152379a
Author: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Date:   Thu Apr 20 09:47:21 2023 +0300

    intel_idle: do not sprinkle module parameter definitions around

    This is a cleanup which improves code consistency. Move the force_irq_on
    module parameter variable and definition to the same place where we have
    variables and definitions for other module parameters.

Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Reviewed-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>

Signed-off-by: default avatarDavid Arcari <darcari@redhat.com>
parent 42890426
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,7 @@ static struct cpuidle_driver intel_idle_driver = {
static int max_cstate = CPUIDLE_STATE_MAX - 1;
static unsigned int disabled_states_mask;
static unsigned int preferred_states_mask;
static bool force_irq_on __read_mostly;
static struct cpuidle_device __percpu *intel_idle_cpuidle_devices;
......@@ -1844,9 +1845,6 @@ static bool __init intel_idle_verify_cstate(unsigned int mwait_hint)
return true;
}
static bool force_irq_on __read_mostly;
module_param(force_irq_on, bool, 0444);
static void __init intel_idle_init_cstates_icpu(struct cpuidle_driver *drv)
{
int cstate;
......@@ -2163,3 +2161,9 @@ MODULE_PARM_DESC(states_off, "Mask of disabled idle states");
*/
module_param_named(preferred_cstates, preferred_states_mask, uint, 0444);
MODULE_PARM_DESC(preferred_cstates, "Mask of preferred idle states");
/*
* Debugging option that forces the driver to enter all C-states with
* interrupts enabled. Does not apply to C-states with
* 'CPUIDLE_FLAG_INIT_XSTATE' and 'CPUIDLE_FLAG_IBRS' flags.
*/
module_param(force_irq_on, bool, 0444);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment