[ofa-general] [Patch 1/3]ehca: Patchset to backport 2.6.24-rc1 kernel base

Stefan Roscher ossrosch at linux.vnet.ibm.com
Wed Oct 31 09:07:16 PDT 2007


This patch backport the xxx_hotcpu_notifier() interface to older
kernelverisons.

Signed-off-by: Stefan Roscher <stefan.roscher at de.ibm.com>
---

 2.6.16/include/linux/cpu.h            |    7 +++++++
 2.6.16_sles10/include/linux/cpu.h     |    7 +++++++
 2.6.16_sles10_sp1/include/linux/cpu.h |    7 +++++++
 2.6.17/include/linux/cpu.h            |    7 +++++++
 2.6.9_U5/include/linux/cpu.h          |    7 +++++++
 5 files changed, 35 insertions(+)



diff -Nurp linux-2.6_old/kernel_addons/backport/2.6.16/include/linux/cpu.h linux-2.6_new/kernel_addons/backport/2.6.16/include/linux/cpu.h
--- linux-2.6_old/kernel_addons/backport/2.6.16/include/linux/cpu.h	1969-12-31 19:00:00.000000000 -0500
+++ linux-2.6_new/kernel_addons/backport/2.6.16/include/linux/cpu.h	2007-10-31 10:37:08.000000000 -0400
@@ -0,0 +1,7 @@
+#ifndef BACKPORT_2_6_17_LINUX_CPU_H
+#define BACKPORT_2_6_17_LINUX_CPU_H
+
+#include_next <linux/cpu.h>
+#define register_hotcpu_notifier(nb)  register_cpu_notifier(nb)
+#define unregister_hotcpu_notifier(nb)  unregister_cpu_notifier(nb)
+#endif
diff -Nurp linux-2.6_old/kernel_addons/backport/2.6.16_sles10/include/linux/cpu.h linux-2.6_new/kernel_addons/backport/2.6.16_sles10/include/linux/cpu.h
--- linux-2.6_old/kernel_addons/backport/2.6.16_sles10/include/linux/cpu.h	1969-12-31 19:00:00.000000000 -0500
+++ linux-2.6_new/kernel_addons/backport/2.6.16_sles10/include/linux/cpu.h	2007-10-31 10:37:40.000000000 -0400
@@ -0,0 +1,7 @@
+#ifndef BACKPORT_2_6_17_LINUX_CPU_H
+#define BACKPORT_2_6_17_LINUX_CPU_H
+
+#include_next <linux/cpu.h>
+#define register_hotcpu_notifier(nb)  register_cpu_notifier(nb)
+#define unregister_hotcpu_notifier(nb)  unregister_cpu_notifier(nb)
+#endif
diff -Nurp linux-2.6_old/kernel_addons/backport/2.6.16_sles10_sp1/include/linux/cpu.h linux-2.6_new/kernel_addons/backport/2.6.16_sles10_sp1/include/linux/cpu.h
--- linux-2.6_old/kernel_addons/backport/2.6.16_sles10_sp1/include/linux/cpu.h	1969-12-31 19:00:00.000000000 -0500
+++ linux-2.6_new/kernel_addons/backport/2.6.16_sles10_sp1/include/linux/cpu.h	2007-10-31 10:38:08.000000000 -0400
@@ -0,0 +1,7 @@
+#ifndef BACKPORT_2_6_17_LINUX_CPU_H
+#define BACKPORT_2_6_17_LINUX_CPU_H
+
+#include_next <linux/cpu.h>
+#define register_hotcpu_notifier(nb)  register_cpu_notifier(nb)
+#define unregister_hotcpu_notifier(nb)  unregister_cpu_notifier(nb)
+#endif
diff -Nurp linux-2.6_old/kernel_addons/backport/2.6.17/include/linux/cpu.h linux-2.6_new/kernel_addons/backport/2.6.17/include/linux/cpu.h
--- linux-2.6_old/kernel_addons/backport/2.6.17/include/linux/cpu.h	1969-12-31 19:00:00.000000000 -0500
+++ linux-2.6_new/kernel_addons/backport/2.6.17/include/linux/cpu.h	2007-10-31 10:38:31.000000000 -0400
@@ -0,0 +1,7 @@
+#ifndef BACKPORT_2_6_17_LINUX_CPU_H
+#define BACKPORT_2_6_17_LINUX_CPU_H
+
+#include_next <linux/cpu.h>
+#define register_hotcpu_notifier(nb)  register_cpu_notifier(nb)
+#define unregister_hotcpu_notifier(nb)  unregister_cpu_notifier(nb)
+#endif
diff -Nurp linux-2.6_old/kernel_addons/backport/2.6.9_U5/include/linux/cpu.h linux-2.6_new/kernel_addons/backport/2.6.9_U5/include/linux/cpu.h
--- linux-2.6_old/kernel_addons/backport/2.6.9_U5/include/linux/cpu.h	1969-12-31 19:00:00.000000000 -0500
+++ linux-2.6_new/kernel_addons/backport/2.6.9_U5/include/linux/cpu.h	2007-10-31 10:38:57.000000000 -0400
@@ -0,0 +1,7 @@
+#ifndef BACKPORT_2_6_17_LINUX_CPU_H
+#define BACKPORT_2_6_17_LINUX_CPU_H
+
+#include_next <linux/cpu.h>
+#define register_hotcpu_notifier(nb)  register_cpu_notifier(nb)
+#define unregister_hotcpu_notifier(nb)  unregister_cpu_notifier(nb)
+#endif





More information about the general mailing list