File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1837,6 +1837,9 @@ static bool __init intel_idle_verify_cstate(unsigned int mwait_hint)
1837
1837
return true;
1838
1838
}
1839
1839
1840
+ static bool force_irq_on __read_mostly ;
1841
+ module_param (force_irq_on , bool , 0444 );
1842
+
1840
1843
static void __init intel_idle_init_cstates_icpu (struct cpuidle_driver * drv )
1841
1844
{
1842
1845
int cstate ;
@@ -1889,8 +1892,10 @@ static void __init intel_idle_init_cstates_icpu(struct cpuidle_driver *drv)
1889
1892
/* Structure copy. */
1890
1893
drv -> states [drv -> state_count ] = cpuidle_state_table [cstate ];
1891
1894
1892
- if (cpuidle_state_table [cstate ].flags & CPUIDLE_FLAG_IRQ_ENABLE )
1895
+ if ((cpuidle_state_table [cstate ].flags & CPUIDLE_FLAG_IRQ_ENABLE ) || force_irq_on ) {
1896
+ printk ("intel_idle: forced intel_idle_irq for state %d\n" , cstate );
1893
1897
drv -> states [drv -> state_count ].enter = intel_idle_irq ;
1898
+ }
1894
1899
1895
1900
if (cpu_feature_enabled (X86_FEATURE_KERNEL_IBRS ) &&
1896
1901
cpuidle_state_table [cstate ].flags & CPUIDLE_FLAG_IBRS ) {
You can’t perform that action at this time.
0 commit comments