Skip to content

Commit

Permalink
x86: remove volatile keyword from clflush.
Browse files Browse the repository at this point in the history
the p parameter is an explicit memory reference, and is
enough to prevent gcc to being nasty here. The volatile
seems completely not needed.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Jan 30, 2008
1 parent 929fd58 commit e34907a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86/system_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static inline void native_wbinvd(void)
asm volatile("wbinvd": : :"memory");
}

static inline void clflush(volatile void *__p)
static inline void clflush(void *__p)
{
asm volatile("clflush %0" : "+m" (*(char __force *)__p));
}
Expand Down

0 comments on commit e34907a

Please sign in to comment.