diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-05-20 07:02:58 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-05-23 07:59:53 -0400 |
commit | f24444b01bf6c51c300fd3ffc73423383d747882 (patch) | |
tree | 456660380194008cf5bd338a5a94b28a1d9cf346 /include/linux/hrtimer.h | |
parent | 9ec2690758a5467f24beb301cca5098078073bba (diff) |
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: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r-- | include/linux/hrtimer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 925c8c01db7b..cc5f5f51db10 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
@@ -174,7 +174,6 @@ enum hrtimer_base_type { | |||
174 | */ | 174 | */ |
175 | struct hrtimer_cpu_base { | 175 | struct hrtimer_cpu_base { |
176 | raw_spinlock_t lock; | 176 | raw_spinlock_t lock; |
177 | struct hrtimer_clock_base clock_base[HRTIMER_MAX_CLOCK_BASES]; | ||
178 | #ifdef CONFIG_HIGH_RES_TIMERS | 177 | #ifdef CONFIG_HIGH_RES_TIMERS |
179 | ktime_t expires_next; | 178 | ktime_t expires_next; |
180 | int hres_active; | 179 | int hres_active; |
@@ -184,6 +183,7 @@ struct hrtimer_cpu_base { | |||
184 | unsigned long nr_hangs; | 183 | unsigned long nr_hangs; |
185 | ktime_t max_hang_time; | 184 | ktime_t max_hang_time; |
186 | #endif | 185 | #endif |
186 | struct hrtimer_clock_base clock_base[HRTIMER_MAX_CLOCK_BASES]; | ||
187 | }; | 187 | }; |
188 | 188 | ||
189 | static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) | 189 | static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) |