arm64: daifflags: Use irqflags functions for daifflags
authorJulien Thierry <julien.thierry@arm.com>
Tue, 28 Aug 2018 15:51:14 +0000 (16:51 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 3 Oct 2018 15:08:52 +0000 (16:08 +0100)
commitf05692919bdd44ad2a1a1fe85222dec16fec7e80
tree0990fb1e9e573b022ac69b0bb71d7f47636729e4
parent040f340134751d73bd03ee92fabb992946c55b3d
arm64: daifflags: Use irqflags functions for daifflags

Some of the work done in daifflags save/restore is already provided
by irqflags functions. Daifflags should always be a superset of irqflags
(it handles irq status + status of other flags). Modifying behaviour of
irqflags should alter the behaviour of daifflags.

Use irqflags_save/restore functions for the corresponding daifflags
operation.

Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/daifflags.h