Re: [PATCH] time: tick-sched: use bool for tick_stopped

From: Peter Zijlstra
Date: Tue Apr 10 2018 - 08:26:21 EST


On Tue, Apr 10, 2018 at 02:07:32PM +0200, Thomas Gleixner wrote:
> On Tue, 10 Apr 2018, Peter Zijlstra wrote:
> > Do you have any actual evidence for that? Is there a compiler stupid
> > enough to generate code to convert a bool to a 1bit value?
>
> Sure, if you do:
>
> > > > > > > + bool tick_stopped : 1;
>
> which is stupidly allowed by the standard....

The code-gen changes are because of the layout change, not because of
the type change.