|
@@ -24,11 +24,11 @@
|
|
#define ARM64_WORKAROUND_CLEAN_CACHE 0
|
|
#define ARM64_WORKAROUND_CLEAN_CACHE 0
|
|
#define ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE 1
|
|
#define ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE 1
|
|
|
|
|
|
-#define NCAPS 2
|
|
|
|
|
|
+#define ARM64_NCAPS 2
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
-extern DECLARE_BITMAP(cpu_hwcaps, NCAPS);
|
|
|
|
|
|
+extern DECLARE_BITMAP(cpu_hwcaps, ARM64_NCAPS);
|
|
|
|
|
|
static inline bool cpu_have_feature(unsigned int num)
|
|
static inline bool cpu_have_feature(unsigned int num)
|
|
{
|
|
{
|
|
@@ -37,16 +37,16 @@ static inline bool cpu_have_feature(unsigned int num)
|
|
|
|
|
|
static inline bool cpus_have_cap(unsigned int num)
|
|
static inline bool cpus_have_cap(unsigned int num)
|
|
{
|
|
{
|
|
- if (num >= NCAPS)
|
|
|
|
|
|
+ if (num >= ARM64_NCAPS)
|
|
return false;
|
|
return false;
|
|
return test_bit(num, cpu_hwcaps);
|
|
return test_bit(num, cpu_hwcaps);
|
|
}
|
|
}
|
|
|
|
|
|
static inline void cpus_set_cap(unsigned int num)
|
|
static inline void cpus_set_cap(unsigned int num)
|
|
{
|
|
{
|
|
- if (num >= NCAPS)
|
|
|
|
|
|
+ if (num >= ARM64_NCAPS)
|
|
pr_warn("Attempt to set an illegal CPU capability (%d >= %d)\n",
|
|
pr_warn("Attempt to set an illegal CPU capability (%d >= %d)\n",
|
|
- num, NCAPS);
|
|
|
|
|
|
+ num, ARM64_NCAPS);
|
|
else
|
|
else
|
|
__set_bit(num, cpu_hwcaps);
|
|
__set_bit(num, cpu_hwcaps);
|
|
}
|
|
}
|