All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ia64: Remove unlikely from cpu_is_offline
@ 2010-12-10  7:16 ` Joe Perches
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Perches @ 2010-12-10  7:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: Tony Luck, Fenghua Yu, linux-ia64

cpu_is_offline already uses unlikely internally.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/ia64/kernel/time.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c
index ed6f22e..9702fa9 100644
--- a/arch/ia64/kernel/time.c
+++ b/arch/ia64/kernel/time.c
@@ -168,7 +168,7 @@ timer_interrupt (int irq, void *dev_id)
 {
 	unsigned long new_itm;
 
-	if (unlikely(cpu_is_offline(smp_processor_id()))) {
+	if (cpu_is_offline(smp_processor_id())) {
 		return IRQ_HANDLED;
 	}
 
-- 
1.7.3.3.398.g0b0cd.dirty


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 1/2] ia64: Remove unlikely from cpu_is_offline
@ 2010-12-10  7:16 ` Joe Perches
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Perches @ 2010-12-10  7:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: Tony Luck, Fenghua Yu, linux-ia64

cpu_is_offline already uses unlikely internally.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/ia64/kernel/time.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c
index ed6f22e..9702fa9 100644
--- a/arch/ia64/kernel/time.c
+++ b/arch/ia64/kernel/time.c
@@ -168,7 +168,7 @@ timer_interrupt (int irq, void *dev_id)
 {
 	unsigned long new_itm;
 
-	if (unlikely(cpu_is_offline(smp_processor_id()))) {
+	if (cpu_is_offline(smp_processor_id())) {
 		return IRQ_HANDLED;
 	}
 
-- 
1.7.3.3.398.g0b0cd.dirty


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] x86: smp: Remove unlikely from cpu_is_offline
  2010-12-10  7:16 ` Joe Perches
  (?)
@ 2010-12-10  7:16 ` Joe Perches
  -1 siblings, 0 replies; 3+ messages in thread
From: Joe Perches @ 2010-12-10  7:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86

cpu_is_offline already uses unlikely internally.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/x86/kernel/smp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/smp.c b/arch/x86/kernel/smp.c
index 513deac..02e53f1 100644
--- a/arch/x86/kernel/smp.c
+++ b/arch/x86/kernel/smp.c
@@ -114,7 +114,7 @@
  */
 static void native_smp_send_reschedule(int cpu)
 {
-	if (unlikely(cpu_is_offline(cpu))) {
+	if (cpu_is_offline(cpu)) {
 		WARN_ON(1);
 		return;
 	}
-- 
1.7.3.3.398.g0b0cd.dirty


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-10  7:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-10  7:16 [PATCH 1/2] ia64: Remove unlikely from cpu_is_offline Joe Perches
2010-12-10  7:16 ` Joe Perches
2010-12-10  7:16 ` [PATCH 2/2] x86: smp: " Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.