irqchip/gic-v4.1: Replace bare number with ID_AA64PFR0_EL1_GIC_V4P1
authorAnshuman Khandual <anshuman.khandual@arm.com>
Fri, 2 Aug 2024 08:56:01 +0000 (14:26 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 2 Aug 2024 12:54:25 +0000 (14:54 +0200)
Use ID_AA64PFR0_EL1_GIC_V4P1 instead of '3' in gic_cpuif_has_vsgi() to
check for the GIC version.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/all/20240802085601.1824057-1-anshuman.khandual@arm.com
drivers/irqchip/irq-gic-v4.c

index ca32ac19d28450b79af8e8748f2ab0ddf78e03ac..58c28895f8c425e1b9881b77b7a4b0aebd8019e9 100644 (file)
@@ -97,7 +97,7 @@ bool gic_cpuif_has_vsgi(void)
 
        fld = cpuid_feature_extract_unsigned_field(reg, ID_AA64PFR0_EL1_GIC_SHIFT);
 
-       return fld >= 0x3;
+       return fld >= ID_AA64PFR0_EL1_GIC_V4P1;
 }
 #else
 bool gic_cpuif_has_vsgi(void)