[SPARC64]: asm/cpudata.h needs asm/asi.h
For the expansion of __GET_CPUID() on SMP. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
#define _SPARC64_CPUDATA_H
|
#define _SPARC64_CPUDATA_H
|
||||||
|
|
||||||
#include <asm/hypervisor.h>
|
#include <asm/hypervisor.h>
|
||||||
|
#include <asm/asi.h>
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
@@ -130,9 +131,9 @@ extern struct sun4v_2insn_patch_entry __sun4v_2insn_patch,
|
|||||||
lduwa [REG] ASI_PHYS_BYPASS_EC_E, REG;\
|
lduwa [REG] ASI_PHYS_BYPASS_EC_E, REG;\
|
||||||
/* sun4v implementation. */ \
|
/* sun4v implementation. */ \
|
||||||
mov SCRATCHPAD_CPUID, REG; \
|
mov SCRATCHPAD_CPUID, REG; \
|
||||||
nop; \
|
|
||||||
ldxa [REG] ASI_SCRATCHPAD, REG; \
|
ldxa [REG] ASI_SCRATCHPAD, REG; \
|
||||||
nop; \
|
nop; \
|
||||||
|
nop; \
|
||||||
.previous;
|
.previous;
|
||||||
|
|
||||||
/* Clobbers TMP, current address space PGD phys address into DEST. */
|
/* Clobbers TMP, current address space PGD phys address into DEST. */
|
||||||
|
Reference in New Issue
Block a user