mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 02:44:41 +01:00
cpuidle: haltpoll: Remove single state handling
cpuidle systems where the governor has no choice because there's only a single idle state are now handled by cpuidle core and bypass the governor, so remove the related handling. Signed-off-by: Aboorva Devarajan <aboorvad@linux.ibm.com> Reviewed-by: Christian Loehle <christian.loehle@arm.com> [ rjw: Extended the change to drop a redundant local variable ] Link: https://patch.msgid.link/20260216185005.1131593-3-aboorvad@linux.ibm.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
e5c9ffc6ae
commit
9b9c0ff095
1 changed files with 1 additions and 3 deletions
|
|
@ -50,9 +50,7 @@ static int haltpoll_select(struct cpuidle_driver *drv,
|
|||
struct cpuidle_device *dev,
|
||||
bool *stop_tick)
|
||||
{
|
||||
s64 latency_req = cpuidle_governor_latency_req(dev->cpu);
|
||||
|
||||
if (!drv->state_count || latency_req == 0) {
|
||||
if (cpuidle_governor_latency_req(dev->cpu) == 0) {
|
||||
*stop_tick = false;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue