arm64: Ensure fpsimd support is ready before userspace is active
authorSuzuki K Poulose <[email protected]>
Fri, 6 Oct 2017 13:16:53 +0000 (14:16 +0100)
committerCatalin Marinas <[email protected]>
Fri, 6 Oct 2017 15:35:25 +0000 (16:35 +0100)
commitae2e972dae3cea795e9f8f94eb1601213c2d49f0
treebebcbb2f5c14336ce4edeb467020c283036abf4f
parentc0d8832e78cbfd4a64b7112e34920af4b0b0e60e
arm64: Ensure fpsimd support is ready before userspace is active

We register the pm/hotplug callbacks for FPSIMD as late_initcall,
which happens after the userspace is active (from initramfs via
populate_rootfs, a rootfs_initcall). Make sure we are ready even
before the userspace could potentially use it, by promoting to
a core_initcall.

Cc: Will Deacon <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Dave Martin <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/kernel/fpsimd.c