Commit 7861144b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

kernel/watchdog.c:touch_softlockup_watchdog(): use raw_cpu_write()


  BUG: using __this_cpu_write() in preemptible [00000000] code: systemd-udevd/497
  caller is __this_cpu_preempt_check+0x13/0x20
  CPU: 3 PID: 497 Comm: systemd-udevd Tainted: G        W     3.15.0-rc1 #9
  Hardware name: Hewlett-Packard HP EliteBook 8470p/179B, BIOS 68ICF Ver. F.02 04/27/2012
  Call Trace:
Reported-by: default avatarLuis Henriques <>
Tested-by: default avatarLuis Henriques <>
Cc: Eric Piel <>
Cc: Robert Moore <>
Cc: Lv Zheng <>
Cc: "Rafael J. Wysocki" <>
Cc: Len Brown <>
Cc: Christoph Lameter <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 82c04ff8
......@@ -138,7 +138,11 @@ static void __touch_watchdog(void)
void touch_softlockup_watchdog(void)
__this_cpu_write(watchdog_touch_ts, 0);
* Preemption can be enabled. It doesn't matter which CPU's timestamp
* gets zeroed here, so use the raw_ operation.
raw_cpu_write(watchdog_touch_ts, 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment