]> xenbits.xensource.com Git - xen.git/commitdiff
arm64: s/ALTERNATIVE/HAS_ALTERNATIVE/
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 13 Sep 2016 16:45:14 +0000 (12:45 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 23 Sep 2016 16:39:44 +0000 (12:39 -0400)
No functional change. We resist the temptation to move
the entries in the Kconfig file to be more in alphabetical
order as the "arm/x86/common: Add HAS_[ALTERNATIVE|EX_TABLE]"
will move one of the entries to common file.

Reviewed-by: Julien Grall <julien.grall@arm.com>
Suggested-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/arm/Kconfig
xen/arch/arm/Makefile
xen/arch/arm/xen.lds.S
xen/include/asm-arm/alternative.h
xen/include/asm-arm/cpuerrata.h

index 797c91f7058b993c85ff64886ba30a221aa7497a..558d013230df293f54d8cae3521062125eee3f05 100644 (file)
@@ -12,8 +12,8 @@ config ARM_32
 config ARM_64
        def_bool y
        depends on 64BIT
+       select HAS_ALTERNATIVE
        select HAS_GICV3
-       select ALTERNATIVE
 
 config ARM
        def_bool y
@@ -45,13 +45,13 @@ config ACPI
 config HAS_GICV3
        bool
 
-config ALTERNATIVE
+config HAS_ALTERNATIVE
        bool
 
 endmenu
 
 menu "ARM errata workaround via the alternative framework"
-       depends on ALTERNATIVE
+       depends on HAS_ALTERNATIVE
 
 config ARM64_ERRATUM_827319
        bool "Cortex-A53: 827319: Data cache clean instructions might cause overlapping transactions to the interconnect"
index 64fdf41d9c0e8a79b8f45100dee1870ec10e97ac..61e655bb58d9932dfbc0fad312c29403b6c67da8 100644 (file)
@@ -4,7 +4,7 @@ subdir-y += platforms
 subdir-$(CONFIG_ARM_64) += efi
 subdir-$(CONFIG_ACPI) += acpi
 
-obj-$(CONFIG_ALTERNATIVE) += alternative.o
+obj-$(CONFIG_HAS_ALTERNATIVE) += alternative.o
 obj-y += bootfdt.o
 obj-y += cpu.o
 obj-y += cpuerrata.o
index 3c5e7ba8275118314d2003d8d1f611a130141f8f..47b910d1eb2f8baf4845082710ce18c9428c2fa1 100644 (file)
@@ -151,7 +151,7 @@ SECTIONS
        *(.initcall1.init)
        __initcall_end = .;
 
-#ifdef CONFIG_ALTERNATIVE
+#ifdef CONFIG_HAS_ALTERNATIVE
        . = ALIGN(4);
        __alt_instructions = .;
        *(.altinstructions)
index 9f88fd9f7551efc812786e192dab43e9aca4f83c..68512172d2e09f4aee08adf7c0df18525544c328 100644 (file)
@@ -5,7 +5,7 @@
 #include <xen/config.h>
 #include <xen/kconfig.h>
 
-#ifdef CONFIG_ALTERNATIVE
+#ifdef CONFIG_HAS_ALTERNATIVE
 
 #ifndef __ASSEMBLY__
 
@@ -154,7 +154,7 @@ int apply_alternatives(const struct alt_instr *start, const struct alt_instr *en
 #define ALTERNATIVE(oldinstr, newinstr, ...)   \
        _ALTERNATIVE_CFG(oldinstr, newinstr, __VA_ARGS__, 1)
 
-#else /* !CONFIG_ALTERNATIVE */
+#else /* !CONFIG_HAS_ALTERNATIVE */
 
 static inline void apply_alternatives_all(void)
 {
index 5e35b4f85e40d28c67971af29b8600ce0e421341..8c57c6a7cc7c89aff41410511dfa838d846c06f8 100644 (file)
@@ -7,7 +7,7 @@
 
 void check_local_cpu_errata(void);
 
-#ifdef CONFIG_ALTERNATIVE
+#ifdef CONFIG_HAS_ALTERNATIVE
 
 #define CHECK_WORKAROUND_HELPER(erratum, feature, arch)         \
 static inline bool_t check_workaround_##erratum(void)           \
@@ -27,7 +27,7 @@ static inline bool_t check_workaround_##erratum(void)           \
     }                                                           \
 }
 
-#else /* CONFIG_ALTERNATIVE */
+#else /* CONFIG_HAS_ALTERNATIVE */
 
 #define CHECK_WORKAROUND_HELPER(erratum, feature, arch)         \
 static inline bool_t check_workaround_##erratum(void)           \