2012-09-15 22:47:10 +00:00
|
|
|
From f06beab6b0e1937262af3a2e45754eb4025e6de6 Mon Sep 17 00:00:00 2001
|
2011-11-20 00:01:55 +00:00
|
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
Date: Fri, 17 Jun 2011 15:42:38 +0200
|
2012-09-15 22:47:10 +00:00
|
|
|
Subject: [PATCH 106/278] cpu-rt-variants.patch
|
2011-11-20 00:01:55 +00:00
|
|
|
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
---
|
|
|
|
include/linux/smp.h | 8 ++++++++
|
|
|
|
1 file changed, 8 insertions(+)
|
|
|
|
|
2012-05-12 14:20:55 +00:00
|
|
|
diff --git a/include/linux/smp.h b/include/linux/smp.h
|
|
|
|
index 8cc38d3..e6c58d8 100644
|
|
|
|
--- a/include/linux/smp.h
|
|
|
|
+++ b/include/linux/smp.h
|
|
|
|
@@ -173,6 +173,14 @@ smp_call_function_any(const struct cpumask *mask, smp_call_func_t func,
|
2011-11-20 00:01:55 +00:00
|
|
|
#define get_cpu() ({ preempt_disable(); smp_processor_id(); })
|
|
|
|
#define put_cpu() preempt_enable()
|
|
|
|
|
|
|
|
+#ifndef CONFIG_PREEMPT_RT_FULL
|
|
|
|
+# define get_cpu_light() get_cpu()
|
|
|
|
+# define put_cpu_light() put_cpu()
|
|
|
|
+#else
|
|
|
|
+# define get_cpu_light() ({ migrate_disable(); smp_processor_id(); })
|
|
|
|
+# define put_cpu_light() migrate_enable()
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
/*
|
|
|
|
* Callback to arch code if there's nosmp or maxcpus=0 on the
|
|
|
|
* boot command line:
|
2012-05-12 14:20:55 +00:00
|
|
|
--
|
|
|
|
1.7.10
|
|
|
|
|