.midr_range_min = min, \
.midr_range_max = max
-static bool_t __maybe_unused
+static bool __maybe_unused
is_affected_midr_range(const struct arm_cpu_capabilities *entry)
{
return MIDR_IS_CPU_MODEL_RANGE(boot_cpu_data.midr.bits, entry->midr_model,
#ifdef CONFIG_HAS_ALTERNATIVE
#define CHECK_WORKAROUND_HELPER(erratum, feature, arch) \
-static inline bool_t check_workaround_##erratum(void) \
+static inline bool check_workaround_##erratum(void) \
{ \
if ( !IS_ENABLED(arch) ) \
- return 0; \
+ return false; \
else \
{ \
- bool_t ret; \
+ bool ret; \
\
asm volatile (ALTERNATIVE("mov %0, #0", \
"mov %0, #1", \
#else /* CONFIG_HAS_ALTERNATIVE */
#define CHECK_WORKAROUND_HELPER(erratum, feature, arch) \
-static inline bool_t check_workaround_##erratum(void) \
+static inline bool check_workaround_##erratum(void) \
{ \
if ( !IS_ENABLED(arch) ) \
- return 0; \
+ return false; \
else \
return unlikely(cpus_have_cap(feature)); \
}
extern DECLARE_BITMAP(cpu_hwcaps, ARM_NCAPS);
-static inline bool_t cpus_have_cap(unsigned int num)
+static inline bool cpus_have_cap(unsigned int num)
{
if ( num >= ARM_NCAPS )
- return 0;
+ return false;
return test_bit(num, cpu_hwcaps);
}
struct arm_cpu_capabilities {
const char *desc;
u16 capability;
- bool_t (*matches)(const struct arm_cpu_capabilities *);
+ bool (*matches)(const struct arm_cpu_capabilities *);
union {
struct { /* To be used for eratum handling only */
u32 midr_model;