diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-18 11:37:41 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-18 11:37:41 -0400 |
| commit | 73e3e6481f56b3b5b618671a8d32b19a35f84316 (patch) | |
| tree | 44addba339ca1279a82d6d702e92e6cc2c183810 /include | |
| parent | 4adeaaf51ebcc3f629f5512b96aebb5089388bca (diff) | |
| parent | 6993fc5bbc5d63ccd55985b39c34417e430e75e9 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt
* git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt:
clocksource: make clocksource watchdog cycle through online CPUs
Documentation: move timer related documentation to a single place
clockevents: optimise tick_nohz_stop_sched_tick() a bit
locking: remove unused double_spin_lock()
hrtimers: simplify lockdep handling
timers: simplify lockdep handling
posix-timers: fix shadowed variables
timer_list: add annotations to workqueue.c
hrtimer: use nanosleep specific restart_block fields
hrtimer: add nanosleep specific restart_block member
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/hrtimer.h | 2 | ||||
| -rw-r--r-- | include/linux/spinlock.h | 37 | ||||
| -rw-r--r-- | include/linux/thread_info.h | 12 |
3 files changed, 12 insertions, 39 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 1ad56a7b2f74..56f3236da829 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
| @@ -173,7 +173,6 @@ struct hrtimer_clock_base { | |||
| 173 | * struct hrtimer_cpu_base - the per cpu clock bases | 173 | * struct hrtimer_cpu_base - the per cpu clock bases |
| 174 | * @lock: lock protecting the base and associated clock bases | 174 | * @lock: lock protecting the base and associated clock bases |
| 175 | * and timers | 175 | * and timers |
| 176 | * @lock_key: the lock_class_key for use with lockdep | ||
| 177 | * @clock_base: array of clock bases for this cpu | 176 | * @clock_base: array of clock bases for this cpu |
| 178 | * @curr_timer: the timer which is executing a callback right now | 177 | * @curr_timer: the timer which is executing a callback right now |
| 179 | * @expires_next: absolute time of the next event which was scheduled | 178 | * @expires_next: absolute time of the next event which was scheduled |
| @@ -189,7 +188,6 @@ struct hrtimer_clock_base { | |||
| 189 | */ | 188 | */ |
| 190 | struct hrtimer_cpu_base { | 189 | struct hrtimer_cpu_base { |
| 191 | spinlock_t lock; | 190 | spinlock_t lock; |
| 192 | struct lock_class_key lock_key; | ||
| 193 | struct hrtimer_clock_base clock_base[HRTIMER_MAX_CLOCK_BASES]; | 191 | struct hrtimer_clock_base clock_base[HRTIMER_MAX_CLOCK_BASES]; |
| 194 | struct list_head cb_pending; | 192 | struct list_head cb_pending; |
| 195 | #ifdef CONFIG_HIGH_RES_TIMERS | 193 | #ifdef CONFIG_HIGH_RES_TIMERS |
diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index 1129ee0a7180..d311a090fae7 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h | |||
| @@ -296,43 +296,6 @@ do { \ | |||
| 296 | }) | 296 | }) |
| 297 | 297 | ||
| 298 | /* | 298 | /* |
| 299 | * Locks two spinlocks l1 and l2. | ||
| 300 | * l1_first indicates if spinlock l1 should be taken first. | ||
| 301 | */ | ||
| 302 | static inline void double_spin_lock(spinlock_t *l1, spinlock_t *l2, | ||
| 303 | bool l1_first) | ||
| 304 | __acquires(l1) | ||
| 305 | __acquires(l2) | ||
| 306 | { | ||
| 307 | if (l1_first) { | ||
| 308 | spin_lock(l1); | ||
| 309 | spin_lock(l2); | ||
| 310 | } else { | ||
| 311 | spin_lock(l2); | ||
| 312 | spin_lock(l1); | ||
| 313 | } | ||
| 314 | } | ||
| 315 | |||
| 316 | /* | ||
| 317 | * Unlocks two spinlocks l1 and l2. | ||
| 318 | * l1_taken_first indicates if spinlock l1 was taken first and therefore | ||
| 319 | * should be released after spinlock l2. | ||
| 320 | */ | ||
| 321 | static inline void double_spin_unlock(spinlock_t *l1, spinlock_t *l2, | ||
| 322 | bool l1_taken_first) | ||
| 323 | __releases(l1) | ||
| 324 | __releases(l2) | ||
| 325 | { | ||
| 326 | if (l1_taken_first) { | ||
| 327 | spin_unlock(l2); | ||
| 328 | spin_unlock(l1); | ||
| 329 | } else { | ||
| 330 | spin_unlock(l1); | ||
| 331 | spin_unlock(l2); | ||
| 332 | } | ||
| 333 | } | ||
| 334 | |||
| 335 | /* | ||
| 336 | * Pull the atomic_t declaration: | 299 | * Pull the atomic_t declaration: |
| 337 | * (asm-mips/atomic.h needs above definitions) | 300 | * (asm-mips/atomic.h needs above definitions) |
| 338 | */ | 301 | */ |
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h index 421323e5a2d6..accd7bad35b0 100644 --- a/include/linux/thread_info.h +++ b/include/linux/thread_info.h | |||
| @@ -9,6 +9,9 @@ | |||
| 9 | 9 | ||
| 10 | #include <linux/types.h> | 10 | #include <linux/types.h> |
| 11 | 11 | ||
| 12 | struct timespec; | ||
| 13 | struct compat_timespec; | ||
| 14 | |||
| 12 | /* | 15 | /* |
| 13 | * System call restart block. | 16 | * System call restart block. |
| 14 | */ | 17 | */ |
| @@ -26,6 +29,15 @@ struct restart_block { | |||
| 26 | u32 bitset; | 29 | u32 bitset; |
| 27 | u64 time; | 30 | u64 time; |
| 28 | } futex; | 31 | } futex; |
| 32 | /* For nanosleep */ | ||
| 33 | struct { | ||
| 34 | clockid_t index; | ||
| 35 | struct timespec __user *rmtp; | ||
| 36 | #ifdef CONFIG_COMPAT | ||
| 37 | struct compat_timespec __user *compat_rmtp; | ||
| 38 | #endif | ||
| 39 | u64 expires; | ||
| 40 | } nanosleep; | ||
| 29 | }; | 41 | }; |
| 30 | }; | 42 | }; |
| 31 | 43 | ||
