Skip to contentSkip to conversation

watchdog-update-watchdog_tresh-properly-fix.patch removed from -mm tree

folded-merged [email protected] 1 participant 1 message Sep 13, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [folded-merged] watchdog-update-watchdog_tresh-properly-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 13 Sep 2013 14:07:11 -0700

The patch titled
Subject: include/linux/smp.h: define __smp_call_function_single for !CONFIG_SMP
has been removed from the -mm tree. Its filename was
watchdog-update-watchdog_tresh-properly-fix.patch

This patch was dropped because it was folded into watchdog-update-watchdog_tresh-properly.patch

------------------------------------------------------
From: Michal Hocko <[email protected]>
Subject: include/linux/smp.h: define __smp_call_function_single for !CONFIG_SMP

This function was not needed until (watchdog: update watchdog_tresh properly) which cannot use on_each_cpu unfortunately as watchdog_nmi_enable relies on perf_event_alloc which is might sleep.

Export it as an alias to on_each_cpu for !CONFIG_SMP.

---

 include/linux/smp.h |    6 ++++++
 1 file changed, 6 insertions(+)
include/linux/smp.h renamed from include/linux/smp.h~watchdog-update-watchdog_tresh-properly-fix +6 -0
diff -puN include/linux/smp.h~watchdog-update-watchdog_tresh-properly-fix include/linux/smp.h
@@ -157,6 +157,12 @@ static inline void kick_all_cpus_sync(vo
 
 #endif /* !SMP */
 
+static inline void __smp_call_function_single(int cpuid,
+		struct call_single_data *data, int wait)
+{
+	on_each_cpu(data->func, data->info, wait);
+}
+
 /*
  * smp_processor_id(): get the current CPU ID.
  *

_

Patches currently in -mm which might be from [email protected] are

origin.patch watchdog-update-watchdog-attributes-atomically.patch watchdog-update-watchdog_tresh-properly.patch