Re: [PATCH 5/5] cpuidle: stop depending on pm_idle

From: H. Peter Anvin
Date: Wed Aug 03 2011 - 18:36:39 EST


On 08/03/2011 12:44 PM, Len Brown wrote:
> From: Len Brown <len.brown@xxxxxxxxx>
>
> cpuidle users should call cpuidle_call_idle() directly
> rather than via (pm_idle)() function pointer.
>
> Architecture may choose to continue using (pm_idle)(),
> but cpuidle need not depend on it:
>
> my_arch_cpu_idle()
> ...
> if(cpuidle_call_idle())
> pm_idle();
>
> cc: x86@xxxxxxxxxx
> cc: Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx>
> cc: Paul Mundt <lethal@xxxxxxxxxxxx>
> Signed-off-by: Len Brown <len.brown@xxxxxxxxx>

Acked-by: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/