diff options
| author | Thomas Gleixner <tglx@kernel.org> | 2026-02-24 19:37:18 +0300 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-02-27 18:40:10 +0300 |
| commit | 7d27eafe54659d19cef10dab4520cbcdfb17b0e3 (patch) | |
| tree | 678e6a665c1ad73baadbd70d2e8a71bac2896528 /include/linux | |
| parent | 8ffc9ea88136903812448a04127e1ee2c0460f24 (diff) | |
| download | linux-7d27eafe54659d19cef10dab4520cbcdfb17b0e3.tar.xz | |
hrtimer: Replace the bitfield in hrtimer_cpu_base
Use bool for the various flags as that creates better code in the hot path.
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260224163430.475262618@kernel.org
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hrtimer_defs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/hrtimer_defs.h b/include/linux/hrtimer_defs.h index 02b010df6570..f9fbf9a48f59 100644 --- a/include/linux/hrtimer_defs.h +++ b/include/linux/hrtimer_defs.h @@ -83,11 +83,11 @@ struct hrtimer_cpu_base { unsigned int cpu; unsigned int active_bases; unsigned int clock_was_set_seq; - unsigned int hres_active : 1, - in_hrtirq : 1, - hang_detected : 1, - softirq_activated : 1, - online : 1; + bool hres_active; + bool in_hrtirq; + bool hang_detected; + bool softirq_activated; + bool online; #ifdef CONFIG_HIGH_RES_TIMERS unsigned int nr_events; unsigned short nr_retries; |
