Re: [PATCH] kernel/watchdog.c : fix smp_processor_id() warning

From: Ming Lei
Date: Thu Jul 26 2012 - 20:38:18 EST


On Fri, Jul 27, 2012 at 3:43 AM, Don Zickus <dzickus@xxxxxxxxxx> wrote:
> On Wed, Jul 25, 2012 at 12:39:45PM +0800, Ming Lei wrote:
>> Use raw_smp_processor_id in lockup_detector_bootcpu_resume()
>> because it is enough when non-boot CPUs are offline.
>>
>> This patch fixes the following warning when DEBUG_PREEMPT
>> is enabled.
>
> Is this patched on top of linux-next?

Yes.

The warning is introduced by the commit below:

7fb860ff90ae970cf62cf676dfc1addcf8415674
(NMI watchdog: fix for lockup detector breakage on resume)


> It seems right based on the code usage. Though it makes me sad the resume
> code has to hack into the cpu notifiers like that.

Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/