]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: remove check for generic timer support for arm64
authorVijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Thu, 18 Sep 2014 12:13:49 +0000 (17:43 +0530)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 24 Sep 2014 08:40:13 +0000 (09:40 +0100)
Information about support for generic support is available in
IDR_PFR1 register in ARMv7. Where as this information is not
available in ARMv8 that supports only aarch64 bit mode.
ARMv8 being always supports generic timer, this check is not
required.

For platforms that support only aarch64 mode, IDR_PFR1 is
not implemented

Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/asm-arm/cpufeature.h

index aec9173c8f8dc529913b1fab72720049aacf28ad..7a6d3de37dc80522045290f5d1eb04fe322bab4f 100644 (file)
 #define cpu_has_jazelle   (boot_cpu_feature32(jazelle) >= 0)
 #define cpu_has_thumbee   (boot_cpu_feature32(thumbee) == 1)
 
+#ifdef CONFIG_ARM_32
 #define cpu_has_gentimer  (boot_cpu_feature32(gentimer) == 1)
+#else
+#define cpu_has_gentimer  (1)
+#endif
 #define cpu_has_security  (boot_cpu_feature32(security) > 0)
 
 #endif