Re: [PATCH] fix BUG using smp_processor_id() in touch_nmi_watchdog and touch_softlockup_watchdog

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Monday, August 16, 2010 - 7:59 pm

On Mon, Aug 16, 2010 at 05:08:29PM +0300, Sergey Senozhatsky wrote:



If preemption is disabled and you deal with the current cpu,
then please use __get_cpu_var, it makes the code more
readable:


void touch_softlockup_watchdog(void)
{
	preempt_disable();
	__get_cpu_var(watchdog_touch_ts) = 0;
	preempt_enable();
}


Same below.

Thanks.



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
fix BUG: using smp_processor_id() in touch_nmi_watchdog an ..., Sergey Senozhatsky, (Fri Aug 13, 3:21 am)
[PATCH] fix BUG using smp_processor_id() in touch_nmi_watc ..., Sergey Senozhatsky, (Mon Aug 16, 7:08 am)
Re: [PATCH] fix BUG using smp_processor_id() in touch_nmi_ ..., Frederic Weisbecker, (Mon Aug 16, 7:59 pm)
[PATCH] fix BUG using smp_processor_id() in touch_nmi_watc ..., Sergey Senozhatsky, (Tue Aug 17, 12:56 am)
Re: [PATCH] fix BUG using smp_processor_id() in touch_nmi_ ..., Sergey Senozhatsky, (Tue Aug 17, 1:39 am)
Re: [PATCH] fix BUG using smp_processor_id() in touch_nmi_ ..., Sergey Senozhatsky, (Tue Aug 17, 2:24 am)
Re: [PATCH] fix BUG using smp_processor_id() in touch_nmi_ ..., Sergey Senozhatsky, (Tue Aug 17, 3:28 am)
Re: [PATCH] fix BUG using smp_processor_id() in touch_nmi_ ..., Sergey Senozhatsky, (Tue Aug 17, 3:39 am)
Re: [PATCH] fix BUG using smp_processor_id() in touch_nmi_ ..., Frederic Weisbecker, (Tue Aug 17, 7:48 pm)
[PATCH] avoid second smp_processor_id() call in __touch_wa ..., Sergey Senozhatsky, (Wed Sep 22, 2:00 am)
Re: [PATCH] avoid second smp_processor_id() call in __touc ..., Frederic Weisbecker, (Wed Sep 22, 9:27 am)
Re: [PATCH] avoid second smp_processor_id() call in __touc ..., Frederic Weisbecker, (Wed Sep 22, 9:47 am)
Re: [PATCH] avoid second smp_processor_id() call in __touc ..., Sergey Senozhatsky, (Sat Sep 25, 10:43 am)