diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-04-30 13:38:43 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-04-30 13:38:46 +0200 |
commit | 484875b11f355b1b54d508a3f4671888f07e643c (patch) | |
tree | ff639e4bd108e48f4b3ab7789e1c0e880453b034 /include/asm-s390 | |
parent | ccf183e469be89e065ed389da9d3f50bd2faa215 (diff) | |
download | kernel_samsung_crespo-484875b11f355b1b54d508a3f4671888f07e643c.zip kernel_samsung_crespo-484875b11f355b1b54d508a3f4671888f07e643c.tar.gz kernel_samsung_crespo-484875b11f355b1b54d508a3f4671888f07e643c.tar.bz2 |
[S390] Move stfl to system.h and delete duplicated version.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/system.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-s390/system.h b/include/asm-s390/system.h index 92098df..79bdbf4 100644 --- a/include/asm-s390/system.h +++ b/include/asm-s390/system.h @@ -16,6 +16,7 @@ #include <asm/ptrace.h> #include <asm/setup.h> #include <asm/processor.h> +#include <asm/lowcore.h> #ifdef __KERNEL__ @@ -422,6 +423,15 @@ extern void smp_ctl_clear_bit(int cr, int bit); #endif /* CONFIG_SMP */ +static inline unsigned int stfl(void) +{ + asm volatile( + " .insn s,0xb2b10000,0(0)\n" /* stfl */ + "0:\n" + EX_TABLE(0b,0b)); + return S390_lowcore.stfl_fac_list; +} + extern void (*_machine_restart)(char *command); extern void (*_machine_halt)(void); extern void (*_machine_power_off)(void); |