The i810 driver contains a direct wbinvd invocations in the form: asm volatile ("wbinvd":::"memory")
Replace this call with the kernel API "native_wbinvd()" that translates to same as "asm volatile("wbinvd" : : : "memory")" and provides a central location where calls to this destructive instruction can be tracked and potentially acted on. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- drivers/video/fbdev/i810/i810_main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/i810/i810_main.h b/drivers/video/fbdev/i810/i810_main.h index 7bfaaad1d0fa..37fd765c89a3 100644 --- a/drivers/video/fbdev/i810/i810_main.h +++ b/drivers/video/fbdev/i810/i810_main.h @@ -54,7 +54,7 @@ static inline void i810_delete_i2c_busses(struct i810fb_par *par) { } #ifdef CONFIG_X86 static inline void flush_cache(void) { - asm volatile ("wbinvd":::"memory"); + native_wbinvd(); } #else #define flush_cache() do { } while(0) -- 2.17.0