Skip to content
Commit 31d85140 authored by Zhenzhong Duan's avatar Zhenzhong Duan Committed by Rafael J. Wysocki
Browse files

cpuidle: haltpoll: Take 'idle=' override into account



Currenly haltpoll isn't aware of the 'idle=' override, the priority is
'idle=poll' > haltpoll > 'idle=halt'. When 'idle=poll' is used, cpuidle
driver is bypassed but current_driver in sys still shows 'haltpoll'.

When 'idle=halt' is used, haltpoll takes precedence and makes
'idle=halt' have no effect.

Add a check to prevent the haltpoll driver from loading if 'idle=' is
present.

Signed-off-by: default avatarZhenzhong Duan <zhenzhong.duan@oracle.com>
Co-developed-by: default avatarJoao Martins <joao.m.martins@oracle.com>
[ rjw: Subject ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 7d194c21
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment