.. | .. |
---|
1115 | 1115 | static void cpu_enable_ssbs(const struct arm64_cpu_capabilities *__unused) |
---|
1116 | 1116 | { |
---|
1117 | 1117 | static bool undef_hook_registered = false; |
---|
1118 | | - static DEFINE_SPINLOCK(hook_lock); |
---|
| 1118 | + static DEFINE_RAW_SPINLOCK(hook_lock); |
---|
1119 | 1119 | |
---|
1120 | | - spin_lock(&hook_lock); |
---|
| 1120 | + raw_spin_lock(&hook_lock); |
---|
1121 | 1121 | if (!undef_hook_registered) { |
---|
1122 | 1122 | register_undef_hook(&ssbs_emulation_hook); |
---|
1123 | 1123 | undef_hook_registered = true; |
---|
1124 | 1124 | } |
---|
1125 | | - spin_unlock(&hook_lock); |
---|
| 1125 | + raw_spin_unlock(&hook_lock); |
---|
1126 | 1126 | |
---|
1127 | 1127 | if (arm64_get_ssbd_state() == ARM64_SSBD_FORCE_DISABLE) { |
---|
1128 | 1128 | sysreg_clear_set(sctlr_el1, 0, SCTLR_ELx_DSSBS); |
---|