• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/kernel/

Lines Matching refs:cpu_base

195 			spin_lock_irqsave(&base->cpu_base->lock, *flags);
199 spin_unlock_irqrestore(&base->cpu_base->lock, *flags);
232 spin_unlock(&base->cpu_base->lock);
233 spin_lock(&new_base->cpu_base->lock);
246 spin_lock_irqsave(&base->cpu_base->lock, *flags);
353 static void hrtimer_force_reprogram(struct hrtimer_cpu_base *cpu_base)
356 struct hrtimer_clock_base *base = cpu_base->clock_base;
359 cpu_base->expires_next.tv64 = KTIME_MAX;
368 if (expires.tv64 < cpu_base->expires_next.tv64)
369 cpu_base->expires_next = expires;
372 if (cpu_base->expires_next.tv64 != KTIME_MAX)
373 tick_program_event(cpu_base->expires_next, 1);
383 * Called with interrupts disabled and base->cpu_base.lock held
493 * Initialize the high resolution related parts of cpu_base
519 if (base->cpu_base->hres_active && hrtimer_reprogram(timer, base)) {
545 &base->cpu_base->cb_pending);
623 spin_unlock_irqrestore(&timer->base->cpu_base->lock, *flags);
758 hrtimer_force_reprogram(base->cpu_base);
783 reprogram = base->cpu_base == &__get_cpu_var(hrtimer_bases);
838 new_base->cpu_base == &__get_cpu_var(hrtimer_bases));
921 struct hrtimer_cpu_base *cpu_base = &__get_cpu_var(hrtimer_bases);
922 struct hrtimer_clock_base *base = cpu_base->clock_base;
927 spin_lock_irqsave(&cpu_base->lock, flags);
944 spin_unlock_irqrestore(&cpu_base->lock, flags);
961 struct hrtimer_cpu_base *cpu_base;
965 cpu_base = &__raw_get_cpu_var(hrtimer_bases);
970 timer->base = &cpu_base->clock_base[clock_id];
991 struct hrtimer_cpu_base *cpu_base;
993 cpu_base = &__raw_get_cpu_var(hrtimer_bases);
994 *tp = ktime_to_timespec(cpu_base->clock_base[which_clock].resolution);
1008 struct hrtimer_cpu_base *cpu_base = &__get_cpu_var(hrtimer_bases);
1013 BUG_ON(!cpu_base->hres_active);
1014 cpu_base->nr_events++;
1022 base = cpu_base->clock_base;
1028 spin_lock(&cpu_base->lock);
1052 &base->cpu_base->cb_pending);
1073 spin_unlock(&cpu_base->lock);
1077 cpu_base->expires_next = expires_next;
1092 struct hrtimer_cpu_base *cpu_base = &__get_cpu_var(hrtimer_bases);
1094 spin_lock_irq(&cpu_base->lock);
1096 while (!list_empty(&cpu_base->cb_pending)) {
1101 timer = list_entry(cpu_base->cb_pending.next,
1108 spin_unlock_irq(&cpu_base->lock);
1112 spin_lock_irq(&cpu_base->lock);
1131 spin_unlock_irq(&cpu_base->lock);
1139 static inline void run_hrtimer_queue(struct hrtimer_cpu_base *cpu_base,
1143 struct hrtimer_clock_base *base = &cpu_base->clock_base[index];
1151 spin_lock_irq(&cpu_base->lock);
1169 spin_unlock_irq(&cpu_base->lock);
1173 spin_lock_irq(&cpu_base->lock);
1181 spin_unlock_irq(&cpu_base->lock);
1193 struct hrtimer_cpu_base *cpu_base = &__get_cpu_var(hrtimer_bases);
1211 hrtimer_get_softirq_time(cpu_base);
1214 run_hrtimer_queue(cpu_base, i);
1347 struct hrtimer_cpu_base *cpu_base = &per_cpu(hrtimer_bases, cpu);
1350 spin_lock_init(&cpu_base->lock);
1351 lockdep_set_class(&cpu_base->lock, &cpu_base->lock_key);
1354 cpu_base->clock_base[i].cpu_base = cpu_base;
1356 hrtimer_init_hres(cpu_base);