lkml.org 
[lkml]   [2018]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 7/7] video: fbdev: i810: replace direct wbinvd invoke with kernel api
Date
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@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
\
 
 \ /
  Last update: 2018-07-24 22:41    [W:0.054 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site