Re: [PATCH v5 01/36] timers: Use static keys for migrate_enable/nohz_active

2018-01-14 Thread Thomas Gleixner
On Fri, 22 Dec 2017, Sebastian Andrzej Siewior wrote: > - if (!IS_ENABLED(CONFIG_NO_HZ_COMMON) || !base->nohz_active) > + if (!is_timers_nohz_active()) That's wrong. You are undoing the mainline changes. I'll send an updated one. Thanks, tglx

[PATCH v5 01/36] timers: Use static keys for migrate_enable/nohz_active

2017-12-22 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner The members migrate_enable and nohz_active in the timer/hrtimer per CPU bases have been introduced to avoid accessing global variables for these decisions. Still that results in a (cache hot) load and conditional branch, which can be avoided by using static keys. Implement