Showing the changes to kernel/hrtimer.c (1 of 1262 files). Show all
Unified · Split
| @@ -63,6 +63,7 @@ · 62 unmodified lines | ||
| 63 | 63 | DEFINE_PER_CPU(struct hrtimer_cpu_base, hrtimer_bases) = |
| 64 | 64 | { |
| 65 | 65 | |
| 66 | + .lock = __RAW_SPIN_LOCK_UNLOCKED(hrtimer_bases.lock), | |
| 66 | 67 | .clock_base = |
| 67 | 68 | { |
| 68 | 69 | { |
| @@ -1662,8 +1663,6 @@ static void __cpuinit init_hrtimers_cpu(int cpu) · 1593 unmodified lines | ||
| 1662 | 1663 | struct hrtimer_cpu_base *cpu_base = &per_cpu(hrtimer_bases, cpu); |
| 1663 | 1664 | int i; |
| 1664 | 1665 | |
| 1665 | − raw_spin_lock_init(&cpu_base->lock); | |
| 1666 | − | |
| 1667 | 1666 | for (i = 0; i < HRTIMER_MAX_CLOCK_BASES; i++) { |
| 1668 | 1667 | cpu_base->clock_base[i].cpu_base = cpu_base; |
| 1669 | 1668 | timerqueue_init_head(&cpu_base->clock_base[i].active); |