kernel-ark/arch/s390/lib
Martin Schwidefsky 8b646bd759 [S390] rework smp code
Define struct pcpu and merge some of the NR_CPUS arrays into it, including
__cpu_logical_map, current_set and smp_cpu_state. Split smp related
functions to those operating on physical cpus and the functions operating
on a logical cpu number. Make the functions for physical cpus use a
pointer to a struct pcpu. This hides the knowledge about cpu addresses in
smp.c, entry[64].S and swsusp_asm64.S, thus remove the sigp.h header.

The PSW restart mechanism is used to start secondary cpus, calling a
function on an online cpu, calling a function on the ipl cpu, and for
the nmi signal. Replace the different assembler functions with a
single function restart_int_handler. The new entry point calls a function
whose pointer is stored in the lowcore of the target cpu and it can wait
for the source cpu to stop. This covers all existing use cases.

Overall the code is now simpler and there are ~380 lines less code.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2012-03-11 11:59:28 -04:00
..
delay.c [S390] cleanup psw related bits and pieces 2011-10-30 15:16:43 +01:00
div64.c
Makefile [S390] uaccess: make sure copy_from_user_overflow is builtin 2010-03-08 12:25:29 +01:00
qrnnd.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
spinlock.c [S390] rework smp code 2012-03-11 11:59:28 -04:00
string.c
uaccess_mvcos.c [S390] Improve address space mode selection. 2009-12-07 12:51:33 +01:00
uaccess_pt.c [S390] sparse: fix sparse warnings with __user pointers 2011-10-30 15:16:46 +01:00
uaccess_std.c futex: Sanitize futex ops argument types 2011-03-11 12:23:31 +01:00
uaccess.h futex: Sanitize futex ops argument types 2011-03-11 12:23:31 +01:00
ucmpdi2.c
usercopy.c [S390] uaccess: implement strict user copy checks 2010-02-26 22:37:29 +01:00