The nettel driver contains a few direct wbinvd invocations in the form: __asm__ ("wbinvd")
Replace all of these calls 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/mtd/maps/nettel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/maps/nettel.c b/drivers/mtd/maps/nettel.c index 729579fb654f..325357cda202 100644 --- a/drivers/mtd/maps/nettel.c +++ b/drivers/mtd/maps/nettel.c @@ -213,7 +213,7 @@ static int __init nettel_init(void) maxsize = AMD_WINDOW_MAXSIZE; *amdpar = SC520_PAR(SC520_PAR_BOOTCS, amdaddr, maxsize); - __asm__ ("wbinvd"); + native_wbinvd(); nettel_amd_map.phys = amdaddr; nettel_amd_map.virt = ioremap_nocache(amdaddr, maxsize); @@ -326,7 +326,7 @@ static int __init nettel_init(void) */ intel1addr = intel0addr + intel0size; *intel1par = SC520_PAR(intel1cs, intel1addr, maxsize); - __asm__ ("wbinvd"); + native_wbinvd(); maxsize += intel0size; @@ -352,7 +352,7 @@ static int __init nettel_init(void) intel1size = intel_mtd->size - intel0size; if (intel1size > 0) { *intel1par = SC520_PAR(intel1cs, intel1addr, intel1size); - __asm__ ("wbinvd"); + native_wbinvd(); } else { *intel1par = 0; } -- 2.17.0