Re: [PATCH v2 2/3] x86/smp: Allow forcing the mwait hint for play dead loop
From: Dave Hansen
Date: Wed Oct 30 2024 - 16:11:18 EST
On 10/30/24 12:53, Rafael J. Wysocki wrote:
> clearly referred to as a kexec() hack, which cannot be done in
> cpuidle_play_dead() because the cpuidle driver doesn't know how to get
> to md->control.
What if we have an mwait_play_dead() _helper_? It takes the hint as an
argument and retains all the kexec hacks. All the cpuidle driver has to
do is call the helper with the hint that the cpuidle driver determines.