powerpc/pseries: Move mm/book3s64/vphn.c under platforms/pseries/
hcall_vphn() is specific to pseries and will be used in a subsequent patch. So, move it to a more appropriate place under arch/powerpc/platforms/pseries. Also merge vphn.h into lppaca.h and update vphn selftest to use the new files. Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
这个提交包含在:
@@ -1067,9 +1067,6 @@ u64 memory_hotplug_max(void)
|
||||
|
||||
/* Virtual Processor Home Node (VPHN) support */
|
||||
#ifdef CONFIG_PPC_SPLPAR
|
||||
|
||||
#include "book3s64/vphn.h"
|
||||
|
||||
struct topology_update_data {
|
||||
struct topology_update_data *next;
|
||||
unsigned int cpu;
|
||||
@@ -1087,17 +1084,6 @@ static void reset_topology_timer(void);
|
||||
static int topology_timer_secs = 1;
|
||||
static int topology_inited;
|
||||
|
||||
static long hcall_vphn(unsigned long cpu, u64 flags, __be32 *associativity)
|
||||
{
|
||||
long rc;
|
||||
long retbuf[PLPAR_HCALL9_BUFSIZE] = {0};
|
||||
|
||||
rc = plpar_hcall9(H_HOME_NODE_ASSOCIATIVITY, retbuf, flags, cpu);
|
||||
vphn_unpack_associativity(retbuf, associativity);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
/*
|
||||
* Change polling interval for associativity changes.
|
||||
*/
|
||||
|
在新工单中引用
屏蔽一个用户