[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <bbd941308f4b17dbc263e1b77fbc0d256e446823.1532463771.git.reinette.chatre@intel.com>
Date: Tue, 24 Jul 2018 13:40:18 -0700
From: Reinette Chatre <reinette.chatre@...el.com>
To: tglx@...utronix.de, fenghua.yu@...el.com, tony.luck@...el.com,
vikas.shivappa@...ux.intel.com
Cc: gavin.hindman@...el.com, jithu.joseph@...el.com,
dave.hansen@...el.com, mingo@...hat.com, hpa@...or.com,
x86@...nel.org, linux-kernel@...r.kernel.org,
Reinette Chatre <reinette.chatre@...el.com>
Subject: [RFC PATCH 7/7] video: fbdev: i810: replace direct wbinvd invoke with kernel api
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.chatre@...el.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
Powered by blists - more mailing lists