]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
s390/setup: cleanup machine flags
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 15 Dec 2015 08:26:30 +0000 (09:26 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 18 Dec 2015 13:59:32 +0000 (14:59 +0100)
Over time some machine flags got unused (e.g. MACHINE_FLAG_MVPG)
or are available on all 64bit systems (MACHINE_FLAG_CSP,
MACHINE_FLAG_IEEE) - let's remove them.
Reorder the other ones to match the order of the MACHINE_HAS_*
macros and renumber all bits to avoid holes.
Also fix the comment about where the flags are detected.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/setup.h

index 23537661da0ed8d00cc8a2c9df4daed83b43eb52..69837225119e675136edce82b65c9df6df5110a2 100644 (file)
 #define PARMAREA               0x10400
 
 /*
- * Machine features detected in head.S
+ * Machine features detected in early.c
  */
 
 #define MACHINE_FLAG_VM                _BITUL(0)
-#define MACHINE_FLAG_IEEE      _BITUL(1)
-#define MACHINE_FLAG_CSP       _BITUL(2)
-#define MACHINE_FLAG_MVPG      _BITUL(3)
-#define MACHINE_FLAG_DIAG44    _BITUL(4)
+#define MACHINE_FLAG_KVM       _BITUL(1)
+#define MACHINE_FLAG_LPAR      _BITUL(2)
+#define MACHINE_FLAG_DIAG9C    _BITUL(3)
+#define MACHINE_FLAG_ESOP      _BITUL(4)
 #define MACHINE_FLAG_IDTE      _BITUL(5)
-#define MACHINE_FLAG_DIAG9C    _BITUL(6)
-#define MACHINE_FLAG_KVM       _BITUL(8)
-#define MACHINE_FLAG_ESOP      _BITUL(9)
-#define MACHINE_FLAG_EDAT1     _BITUL(10)
-#define MACHINE_FLAG_EDAT2     _BITUL(11)
-#define MACHINE_FLAG_LPAR      _BITUL(12)
-#define MACHINE_FLAG_LPP       _BITUL(13)
-#define MACHINE_FLAG_TOPOLOGY  _BITUL(14)
-#define MACHINE_FLAG_TE                _BITUL(15)
-#define MACHINE_FLAG_TLB_LC    _BITUL(17)
-#define MACHINE_FLAG_VX                _BITUL(18)
-#define MACHINE_FLAG_CAD       _BITUL(19)
+#define MACHINE_FLAG_DIAG44    _BITUL(6)
+#define MACHINE_FLAG_EDAT1     _BITUL(7)
+#define MACHINE_FLAG_EDAT2     _BITUL(8)
+#define MACHINE_FLAG_LPP       _BITUL(9)
+#define MACHINE_FLAG_TOPOLOGY  _BITUL(10)
+#define MACHINE_FLAG_TE                _BITUL(11)
+#define MACHINE_FLAG_TLB_LC    _BITUL(12)
+#define MACHINE_FLAG_VX                _BITUL(13)
+#define MACHINE_FLAG_CAD       _BITUL(14)
 
 #define LPP_MAGIC              _BITUL(31)
 #define LPP_PFAULT_PID_MASK    _AC(0xffffffff, UL)