x86/speculation: Rework speculative_store_bypass_update()
[linux-2.6-block.git] / arch / x86 / kernel / process.c
index 91c3398286d84e69a4c752027f10e6f78b29f6c1..30ca2d1a92319726ff31d3ddb8264140bcec17cf 100644 (file)
@@ -414,10 +414,10 @@ static __always_inline void __speculative_store_bypass_update(unsigned long tifn
                intel_set_ssb_state(tifn);
 }
 
-void speculative_store_bypass_update(void)
+void speculative_store_bypass_update(unsigned long tif)
 {
        preempt_disable();
-       __speculative_store_bypass_update(current_thread_info()->flags);
+       __speculative_store_bypass_update(tif);
        preempt_enable();
 }