Lines Matching refs:flags
108 static inline void clocksource_watchdog_lock(unsigned long *flags) in clocksource_watchdog_lock() argument
110 spin_lock_irqsave(&watchdog_lock, *flags); in clocksource_watchdog_lock()
113 static inline void clocksource_watchdog_unlock(unsigned long *flags) in clocksource_watchdog_unlock() argument
115 spin_unlock_irqrestore(&watchdog_lock, *flags); in clocksource_watchdog_unlock()
147 cs->flags &= ~(CLOCK_SOURCE_VALID_FOR_HRES | CLOCK_SOURCE_WATCHDOG); in __clocksource_unstable()
148 cs->flags |= CLOCK_SOURCE_UNSTABLE; in __clocksource_unstable()
176 unsigned long flags; in clocksource_mark_unstable() local
178 spin_lock_irqsave(&watchdog_lock, flags); in clocksource_mark_unstable()
179 if (!(cs->flags & CLOCK_SOURCE_UNSTABLE)) { in clocksource_mark_unstable()
184 spin_unlock_irqrestore(&watchdog_lock, flags); in clocksource_mark_unstable()
203 if (cs->flags & CLOCK_SOURCE_UNSTABLE) { in clocksource_watchdog()
215 if (!(cs->flags & CLOCK_SOURCE_WATCHDOG) || in clocksource_watchdog()
217 cs->flags |= CLOCK_SOURCE_WATCHDOG; in clocksource_watchdog()
252 if (!(cs->flags & CLOCK_SOURCE_VALID_FOR_HRES) && in clocksource_watchdog()
253 (cs->flags & CLOCK_SOURCE_IS_CONTINUOUS) && in clocksource_watchdog()
254 (watchdog->flags & CLOCK_SOURCE_IS_CONTINUOUS)) { in clocksource_watchdog()
256 cs->flags |= CLOCK_SOURCE_VALID_FOR_HRES; in clocksource_watchdog()
274 cs->flags |= CLOCK_SOURCE_RESELECT; in clocksource_watchdog()
325 cs->flags &= ~CLOCK_SOURCE_WATCHDOG; in clocksource_reset_watchdog()
337 if (cs->flags & CLOCK_SOURCE_MUST_VERIFY) { in clocksource_enqueue_watchdog()
340 cs->flags &= ~CLOCK_SOURCE_WATCHDOG; in clocksource_enqueue_watchdog()
343 if (cs->flags & CLOCK_SOURCE_IS_CONTINUOUS) in clocksource_enqueue_watchdog()
344 cs->flags |= CLOCK_SOURCE_VALID_FOR_HRES; in clocksource_enqueue_watchdog()
351 unsigned long flags; in clocksource_select_watchdog() local
353 spin_lock_irqsave(&watchdog_lock, flags); in clocksource_select_watchdog()
361 if (cs->flags & CLOCK_SOURCE_MUST_VERIFY) in clocksource_select_watchdog()
382 spin_unlock_irqrestore(&watchdog_lock, flags); in clocksource_select_watchdog()
388 if (cs->flags & CLOCK_SOURCE_MUST_VERIFY) { in clocksource_dequeue_watchdog()
400 unsigned long flags; in __clocksource_watchdog_kthread() local
403 spin_lock_irqsave(&watchdog_lock, flags); in __clocksource_watchdog_kthread()
405 if (cs->flags & CLOCK_SOURCE_UNSTABLE) { in __clocksource_watchdog_kthread()
410 if (cs->flags & CLOCK_SOURCE_RESELECT) { in __clocksource_watchdog_kthread()
411 cs->flags &= ~CLOCK_SOURCE_RESELECT; in __clocksource_watchdog_kthread()
417 spin_unlock_irqrestore(&watchdog_lock, flags); in __clocksource_watchdog_kthread()
440 if (cs->flags & CLOCK_SOURCE_IS_CONTINUOUS) in clocksource_enqueue_watchdog()
441 cs->flags |= CLOCK_SOURCE_VALID_FOR_HRES; in clocksource_enqueue_watchdog()
451 static inline void clocksource_watchdog_lock(unsigned long *flags) { } in clocksource_watchdog_lock() argument
452 static inline void clocksource_watchdog_unlock(unsigned long *flags) { } in clocksource_watchdog_unlock() argument
466 if (!(cs->flags & CLOCK_SOURCE_SUSPEND_NONSTOP)) in __clocksource_suspend_select()
718 if (oneshot && !(cs->flags & CLOCK_SOURCE_VALID_FOR_HRES)) in clocksource_find_best()
749 if (!(cs->flags & CLOCK_SOURCE_VALID_FOR_HRES) && oneshot) { in __clocksource_select()
751 if (cs->flags & CLOCK_SOURCE_UNSTABLE) { in __clocksource_select()
920 unsigned long flags; in __clocksource_register_scale() local
930 clocksource_watchdog_lock(&flags); in __clocksource_register_scale()
933 clocksource_watchdog_unlock(&flags); in __clocksource_register_scale()
957 unsigned long flags; in clocksource_change_rating() local
960 clocksource_watchdog_lock(&flags); in clocksource_change_rating()
962 clocksource_watchdog_unlock(&flags); in clocksource_change_rating()
976 unsigned long flags; in clocksource_unbind() local
1001 clocksource_watchdog_lock(&flags); in clocksource_unbind()
1004 clocksource_watchdog_unlock(&flags); in clocksource_unbind()
1149 (src->flags & CLOCK_SOURCE_VALID_FOR_HRES)) in available_clocksource_show()