]> err.no Git - linux-2.6/commitdiff
[S390] Move stfl to system.h and delete duplicated version.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 30 Apr 2008 11:38:43 +0000 (13:38 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 30 Apr 2008 11:38:46 +0000 (13:38 +0200)
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/setup.c
arch/s390/kvm/priv.c
include/asm-s390/system.h

index a9d18aafa5f47f610db88996985270c1bda30f35..024180e25e852d75d76f2e27e8705d4d2bcb0dff 100644 (file)
@@ -683,15 +683,6 @@ setup_memory(void)
 #endif
 }
 
-static __init 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;
-}
-
 static int __init __stfle(unsigned long long *list, int doublewords)
 {
        typedef struct { unsigned long long _[doublewords]; } addrtype;
index 1465946325c538a85fe183c0fb1aa83c1ece44d3..c02286c6a9315efcd4936e79a9798f2c16bf256f 100644 (file)
@@ -151,18 +151,9 @@ static int handle_chsc(struct kvm_vcpu *vcpu)
        return 0;
 }
 
-static unsigned int kvm_stfl(void)
-{
-       asm volatile(
-               "       .insn   s,0xb2b10000,0(0)\n" /* stfl */
-               "0:\n"
-               EX_TABLE(0b, 0b));
-       return S390_lowcore.stfl_fac_list;
-}
-
 static int handle_stfl(struct kvm_vcpu *vcpu)
 {
-       unsigned int facility_list = kvm_stfl();
+       unsigned int facility_list = stfl();
        int rc;
 
        vcpu->stat.instruction_stfl++;
index 92098df4d6e37a2567d33f4c4fca156a72264146..79bdbf4b33a70b6ffea3d9913af40f5f7a1f3498 100644 (file)
@@ -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);