Re: [PATCH 2/2][v2] cpuidle-haltpoll: Build as module by default

From: Peter Zijlstra
Date: Fri Dec 16 2022 - 10:02:28 EST


On Thu, Dec 08, 2022 at 02:32:15AM +0000, Li,Rongqing wrote:
>
> > > Allow user to unload it in running
> >
> > Just like that? And corrupt things left and right while at it?
> >
> > No way.
> >
> > And why do you need this?
>
> Cpuidle-haltpoll can not improve performance for all cases, like when
> guest has mwait, unixbench shows a small performance drop; So change
> it as module, user can insmod this drivers and rmmod this driver at
> run time

I'm thinking all this can be achieved by a small change to
haltpoll_want().