OSDN Git Service

arm64: irqflags: Use ICC_PMR_EL1 for interrupt masking
authorJulien Thierry <julien.thierry@arm.com>
Thu, 31 Jan 2019 14:58:50 +0000 (14:58 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Feb 2019 10:05:19 +0000 (10:05 +0000)
commit4a503217ce37e1f4f3d9b681bbcbbac103776bf1
treec90f1af43efe6e519e17fc820cd4b52e48377d73
parent13b210ddf474d9f3368766008a89fe82a6f90b48
arm64: irqflags: Use ICC_PMR_EL1 for interrupt masking

Instead disabling interrupts by setting the PSR.I bit, use a priority
higher than the one used for interrupts to mask them via PMR.

When using PMR to disable interrupts, the value of PMR will be used
instead of PSR.[DAIF] for the irqflags.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Suggested-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/efi.h
arch/arm64/include/asm/irqflags.h