> but now you're duplicating this functionality adding code for everyone.
I think the right option is still to put cpuidle on a diet.
There's no reason an idle handler needs to be that bloated.
If it was 2K or so just including it into the core would be fine.
Ignoring code size completely is generally a wrong trade off imho.