+ let-smp_call_function_single-return-ebusy-on-up.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Let smp_call_function_single return -EBUSY on UP
has been added to the -mm tree.  Its filename is
     let-smp_call_function_single-return-ebusy-on-up.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Let smp_call_function_single return -EBUSY on UP
From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>

All architectures that have an implementation of smp_call_function_single
let it return -EBUSY if it is asked to execute func on the current cpu. 
(akpm: except for x86_64).  Therefore the UP version must always return
-EBUSY.

Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/smp.h |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff -puN include/linux/smp.h~let-smp_call_function_single-return-ebusy-on-up include/linux/smp.h
--- a/include/linux/smp.h~let-smp_call_function_single-return-ebusy-on-up
+++ a/include/linux/smp.h
@@ -99,11 +99,9 @@ static inline void smp_send_reschedule(i
 #define num_booting_cpus()			1
 #define smp_prepare_boot_cpu()			do {} while (0)
 static inline int smp_call_function_single(int cpuid, void (*func) (void *info),
-				void *info, int retry, int wait)
+					   void *info, int retry, int wait)
 {
-	/* Disable interrupts here? */
-	func(info);
-	return 0;
+	return -EBUSY;
 }
 
 #endif /* !SMP */
_

Patches currently in -mm which might be from heiko.carstens@xxxxxxxxxx are

s390-spinlock-initializer-cleanup.patch
simplify-compat_sys_timerfd.patch
let-smp_call_function_single-return-ebusy-on-up.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux