Lines Matching refs:flags

165 static inline void clocksource_watchdog_lock(unsigned long *flags)  in clocksource_watchdog_lock()  argument
167 spin_lock_irqsave(&watchdog_lock, *flags); in clocksource_watchdog_lock()
170 static inline void clocksource_watchdog_unlock(unsigned long *flags) in clocksource_watchdog_unlock() argument
172 spin_unlock_irqrestore(&watchdog_lock, *flags); in clocksource_watchdog_unlock()
204 cs->flags &= ~(CLOCK_SOURCE_VALID_FOR_HRES | CLOCK_SOURCE_WATCHDOG); in __clocksource_unstable()
205 cs->flags |= CLOCK_SOURCE_UNSTABLE; in __clocksource_unstable()
233 unsigned long flags; in clocksource_mark_unstable() local
235 spin_lock_irqsave(&watchdog_lock, flags); in clocksource_mark_unstable()
236 if (!(cs->flags & CLOCK_SOURCE_UNSTABLE)) { in clocksource_mark_unstable()
241 spin_unlock_irqrestore(&watchdog_lock, flags); in clocksource_mark_unstable()
421 cs->flags &= ~CLOCK_SOURCE_WATCHDOG; in clocksource_reset_watchdog()
444 if (cs->flags & CLOCK_SOURCE_UNSTABLE) { in clocksource_watchdog()
477 if (!(cs->flags & CLOCK_SOURCE_WATCHDOG) || in clocksource_watchdog()
479 cs->flags |= CLOCK_SOURCE_WATCHDOG; in clocksource_watchdog()
546 if (!(cs->flags & CLOCK_SOURCE_VALID_FOR_HRES) && in clocksource_watchdog()
547 (cs->flags & CLOCK_SOURCE_IS_CONTINUOUS) && in clocksource_watchdog()
548 (watchdog->flags & CLOCK_SOURCE_IS_CONTINUOUS)) { in clocksource_watchdog()
550 cs->flags |= CLOCK_SOURCE_VALID_FOR_HRES; in clocksource_watchdog()
568 cs->flags |= CLOCK_SOURCE_RESELECT; in clocksource_watchdog()
628 if (cs->flags & CLOCK_SOURCE_MUST_VERIFY) { in clocksource_enqueue_watchdog()
631 cs->flags &= ~CLOCK_SOURCE_WATCHDOG; in clocksource_enqueue_watchdog()
634 if (cs->flags & CLOCK_SOURCE_IS_CONTINUOUS) in clocksource_enqueue_watchdog()
635 cs->flags |= CLOCK_SOURCE_VALID_FOR_HRES; in clocksource_enqueue_watchdog()
642 unsigned long flags; in clocksource_select_watchdog() local
644 spin_lock_irqsave(&watchdog_lock, flags); in clocksource_select_watchdog()
652 if (cs->flags & CLOCK_SOURCE_MUST_VERIFY) in clocksource_select_watchdog()
673 spin_unlock_irqrestore(&watchdog_lock, flags); in clocksource_select_watchdog()
679 if (cs->flags & CLOCK_SOURCE_MUST_VERIFY) { in clocksource_dequeue_watchdog()
691 unsigned long flags; in __clocksource_watchdog_kthread() local
696 curr_clocksource->flags & CLOCK_SOURCE_UNSTABLE && in __clocksource_watchdog_kthread()
697 curr_clocksource->flags & CLOCK_SOURCE_VERIFY_PERCPU) in __clocksource_watchdog_kthread()
700 spin_lock_irqsave(&watchdog_lock, flags); in __clocksource_watchdog_kthread()
702 if (cs->flags & CLOCK_SOURCE_UNSTABLE) { in __clocksource_watchdog_kthread()
707 if (cs->flags & CLOCK_SOURCE_RESELECT) { in __clocksource_watchdog_kthread()
708 cs->flags &= ~CLOCK_SOURCE_RESELECT; in __clocksource_watchdog_kthread()
714 spin_unlock_irqrestore(&watchdog_lock, flags); in __clocksource_watchdog_kthread()
737 if (cs->flags & CLOCK_SOURCE_IS_CONTINUOUS) in clocksource_enqueue_watchdog()
738 cs->flags |= CLOCK_SOURCE_VALID_FOR_HRES; in clocksource_enqueue_watchdog()
748 static inline void clocksource_watchdog_lock(unsigned long *flags) { } in clocksource_watchdog_lock() argument
749 static inline void clocksource_watchdog_unlock(unsigned long *flags) { } in clocksource_watchdog_unlock() argument
763 if (!(cs->flags & CLOCK_SOURCE_SUSPEND_NONSTOP)) in __clocksource_suspend_select()
1018 if (oneshot && !(cs->flags & CLOCK_SOURCE_VALID_FOR_HRES)) in clocksource_find_best()
1049 if (!(cs->flags & CLOCK_SOURCE_VALID_FOR_HRES) && oneshot) { in __clocksource_select()
1051 if (cs->flags & CLOCK_SOURCE_UNSTABLE) { in __clocksource_select()
1239 unsigned long flags; in __clocksource_register_scale() local
1258 clocksource_watchdog_lock(&flags); in __clocksource_register_scale()
1261 clocksource_watchdog_unlock(&flags); in __clocksource_register_scale()
1276 unsigned long flags; in clocksource_unbind() local
1301 clocksource_watchdog_lock(&flags); in clocksource_unbind()
1304 clocksource_watchdog_unlock(&flags); in clocksource_unbind()
1449 (src->flags & CLOCK_SOURCE_VALID_FOR_HRES)) in available_clocksource_show()