Re: [PATCH] sched/idle: Export cpu_idle_poll_ctrl() symbol

From: Peter Zijlstra
Date: Thu Nov 25 2021 - 04:54:06 EST


On Thu, Nov 25, 2021 at 02:44:36PM +0530, Maulik Shah wrote:
> Export cpu_idle_poll_ctrl() so that module drivers can use same.

This does not seem like a really safe interface to expose to the
world.

Surely the better solution is to rework things to not rely on this. I'm
fairly sure it's not hard to write a cpuidle driver that does much the
same.