From 7a7c56d19184a76d21bf8203c7447714eb0b839a Mon Sep 17 00:00:00 2001 From: Boris Ostrovsky Date: Tue, 23 Jan 2018 11:02:43 -0500 Subject: [PATCH] x86/IBRS: Drop unnecessary WRITE_ONCE There is no reason to use it here. Orabug: 27448280 Signed-off-by: Boris Ostrovsky Reviewed-by: Krish Sadhukhan Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Konrad Rzeszutek Wilk --- arch/x86/kernel/cpu/spec_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/spec_ctrl.c b/arch/x86/kernel/cpu/spec_ctrl.c index 2b288f1b3d35..2de6c9ea6122 100644 --- a/arch/x86/kernel/cpu/spec_ctrl.c +++ b/arch/x86/kernel/cpu/spec_ctrl.c @@ -89,7 +89,7 @@ static ssize_t ibrs_enabled_write(struct file *file, enable = IBRS_DISABLED; } - WRITE_ONCE(sysctl_ibrs_enabled, enable); + sysctl_ibrs_enabled = enable; mutex_unlock(&spec_ctrl_mutex); return count; -- 2.50.1