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>
这个提交包含在:
Naveen N. Rao
2019-07-03 22:33:59 +05:30
提交者 Michael Ellerman
父节点 ef34e0efa2
当前提交 5a1ea4774d
修改 10 个文件,包含 46 行新增44 行删除

查看文件

@@ -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.
*/