Skip to content

Commit

Permalink
[SPARC64]: asm/cpudata.h needs asm/asi.h
Browse files Browse the repository at this point in the history
For the expansion of __GET_CPUID() on SMP.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 8591e30 commit 89a5264
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/asm-sparc64/cpudata.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#define _SPARC64_CPUDATA_H

#include <asm/hypervisor.h>
#include <asm/asi.h>

#ifndef __ASSEMBLY__

Expand Down Expand Up @@ -130,9 +131,9 @@ extern struct sun4v_2insn_patch_entry __sun4v_2insn_patch,
lduwa [REG] ASI_PHYS_BYPASS_EC_E, REG;\
/* sun4v implementation. */ \
mov SCRATCHPAD_CPUID, REG; \
nop; \
ldxa [REG] ASI_SCRATCHPAD, REG; \
nop; \
nop; \
.previous;

/* Clobbers TMP, current address space PGD phys address into DEST. */
Expand Down

0 comments on commit 89a5264

Please sign in to comment.