Commit f24444b0 authored by Thomas Gleixner's avatar Thomas Gleixner

hrtimers: Make struct hrtimer_cpu_base layout less stupid

In the HIGHRES=y case we access the members at the end of struct
hrtimer_cpu_base first and then the one at the beginning. Move the
hrtimer data to front, so we have linear progressing access.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarPeter Zijlstra <peterz@infradead.org>
parent 9ec26907
...@@ -174,7 +174,6 @@ enum hrtimer_base_type { ...@@ -174,7 +174,6 @@ enum hrtimer_base_type {
*/ */
struct hrtimer_cpu_base { struct hrtimer_cpu_base {
raw_spinlock_t lock; raw_spinlock_t lock;
struct hrtimer_clock_base clock_base[HRTIMER_MAX_CLOCK_BASES];
#ifdef CONFIG_HIGH_RES_TIMERS #ifdef CONFIG_HIGH_RES_TIMERS
ktime_t expires_next; ktime_t expires_next;
int hres_active; int hres_active;
...@@ -184,6 +183,7 @@ struct hrtimer_cpu_base { ...@@ -184,6 +183,7 @@ struct hrtimer_cpu_base {
unsigned long nr_hangs; unsigned long nr_hangs;
ktime_t max_hang_time; ktime_t max_hang_time;
#endif #endif
struct hrtimer_clock_base clock_base[HRTIMER_MAX_CLOCK_BASES];
}; };
static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment