On Tue, Aug 17, 2010 at 01:39:48PM +0300, Sergey Senozhatsky wrote:
I don't have a deep enough understanding of the subtleties between
per_cpu, __get_cpu_var, and __raw_get_cpu_var to really say which is
correct. To me, all three versions of your patch look they do the same
thing.
Technically, it seems like preempt_disable/enable would be the correct
thing to do. But as someone pointed out earlier, if the code is preempted
and switches cpu, then the touch_*_watchdog effectively becomes a no-op
(which I guess it can do even with the preempt_disable/enable surrounding
it). So I have no idea. I am going to wait for smarter people than me to
provide an opinion. :-)
Cheers,
Don
--