Messages in this thread | | | Date | Wed, 2 May 2018 15:35:53 +0200 (CEST) | From | Thomas Gleixner <> | Subject | Re: [PATCH v2 2/7] clocksource: Allow clocksource_mark_unstable() on unregisered clocksources |
| |
On Mon, 30 Apr 2018, Peter Zijlstra wrote: > --- a/kernel/time/clocksource.c > +++ b/kernel/time/clocksource.c > @@ -119,6 +119,16 @@ static DEFINE_SPINLOCK(watchdog_lock); > static int watchdog_running; > static atomic_t watchdog_reset_pending; > > +static void inline clocksource_watchdog_lock(unsigned long *flags) > +{ > + spin_lock_irqsave(&watchdog_lock, *flags); > +} > + > +static void inline clocksource_watchdog_unlock(unsigned long *flags) > +{ > + spin_unlock_irqrestore(&watchdog_lock, *flags); > +}
I can see why you made that wrapper, but where are the stubs for !CONFIG_CLOCKSOURCE_WATCHDOG?
Thanks,
tglx
| |