diff options
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 92098df4d6e3..79bdbf4b33a7 100644 --- a/include/asm-s390/system.h +++ b/include/asm-s390/system.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <asm/ptrace.h> | 16 | #include <asm/ptrace.h> |
17 | #include <asm/setup.h> | 17 | #include <asm/setup.h> |
18 | #include <asm/processor.h> | 18 | #include <asm/processor.h> |
19 | #include <asm/lowcore.h> | ||
19 | 20 | ||
20 | #ifdef __KERNEL__ | 21 | #ifdef __KERNEL__ |
21 | 22 | ||
@@ -422,6 +423,15 @@ extern void smp_ctl_clear_bit(int cr, int bit); | |||
422 | 423 | ||
423 | #endif /* CONFIG_SMP */ | 424 | #endif /* CONFIG_SMP */ |
424 | 425 | ||
426 | static inline unsigned int stfl(void) | ||
427 | { | ||
428 | asm volatile( | ||
429 | " .insn s,0xb2b10000,0(0)\n" /* stfl */ | ||
430 | "0:\n" | ||
431 | EX_TABLE(0b,0b)); | ||
432 | return S390_lowcore.stfl_fac_list; | ||
433 | } | ||
434 | |||
425 | extern void (*_machine_restart)(char *command); | 435 | extern void (*_machine_restart)(char *command); |
426 | extern void (*_machine_halt)(void); | 436 | extern void (*_machine_halt)(void); |
427 | extern void (*_machine_power_off)(void); | 437 | extern void (*_machine_power_off)(void); |