Skip to content

Commit

Permalink
x86_64: Remove serialize_cpu() inline
Browse files Browse the repository at this point in the history
- It was redundant with sync_core()
- It was unused
- It was broken: no input arguments to cpuid; could fault randomly
  depending on eax contents.

Now it's gone.

[ tglx: arch/x86 adaptation ]

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Andi Kleen authored and Thomas Gleixner committed Oct 17, 2007
1 parent 1e32b07 commit e295f75
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/asm-x86/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,6 @@ static inline void prefetchw(void *x)

#define cpu_relax() rep_nop()

static inline void serialize_cpu(void)
{
__asm__ __volatile__ ("cpuid" : : : "ax", "bx", "cx", "dx");
}

static inline void __monitor(const void *eax, unsigned long ecx,
unsigned long edx)
{
Expand Down

0 comments on commit e295f75

Please sign in to comment.