On Tue, 10 Apr 2018, yuankuiz@xxxxxxxxxxxxxx wrote:[ZJ] Yes. Per newest tip in branch of linux-pm-cpuidle, it is unsigned int with 1 bit in width.
From: John Zhao <yuankuiz@xxxxxxxxxxxxxx>
Variable tick_stopped returned by tick_nohz_tick_stopped
can have only true / forse values. Since the return type
of the tick_nohz_tick_stopped is also bool, variable
tick_stopped nice to have data type as bool in place of int.
The data type is not int.
It's part of an integer bitfield and occupies[ZJ] So, 1 bit in width is specified as:
exactly one bit of storage, while bool has an architecture dependend size
and is at least 1 byte, i.e. 8 bit. So with alignment effects you grew the
size of the data structure and therefore the cache foot print.
This is not about 'nice to have' ....
Thanks,
tglx