提交 f1a1ebf1 编写于 作者: J Jiri Denemark

cpu: Rename PowerPCUpdate and PowerPCDataFree functions

For consistency with other functions in PowerPC CPU driver, the two
functions are renamed as ppcUpdate and ppcDataFree, respectively.
上级 7a4f1238
...@@ -350,7 +350,7 @@ cleanup: ...@@ -350,7 +350,7 @@ cleanup:
static void static void
PowerPCDataFree(union cpuData *data) ppcDataFree(union cpuData *data)
{ {
if (data == NULL) if (data == NULL)
return; return;
...@@ -377,11 +377,12 @@ ppcNodeData(void) ...@@ -377,11 +377,12 @@ ppcNodeData(void)
#endif #endif
static int static int
PowerPCUpdate(virCPUDefPtr guest ATTRIBUTE_UNUSED, ppcUpdate(virCPUDefPtr guest ATTRIBUTE_UNUSED,
const virCPUDefPtr host ATTRIBUTE_UNUSED) const virCPUDefPtr host ATTRIBUTE_UNUSED)
{ {
return 0; return 0;
} }
static virCPUDefPtr static virCPUDefPtr
ppcBaseline(virCPUDefPtr *cpus, ppcBaseline(virCPUDefPtr *cpus,
unsigned int ncpus, unsigned int ncpus,
...@@ -478,7 +479,7 @@ struct cpuArchDriver cpuDriverPowerPC = { ...@@ -478,7 +479,7 @@ struct cpuArchDriver cpuDriverPowerPC = {
.compare = ppcCompare, .compare = ppcCompare,
.decode = ppcDecode, .decode = ppcDecode,
.encode = NULL, .encode = NULL,
.free = PowerPCDataFree, .free = ppcDataFree,
#if defined(__powerpc__) || defined(__powerpc64__) #if defined(__powerpc__) || defined(__powerpc64__)
.nodeData = ppcNodeData, .nodeData = ppcNodeData,
#else #else
...@@ -486,6 +487,6 @@ struct cpuArchDriver cpuDriverPowerPC = { ...@@ -486,6 +487,6 @@ struct cpuArchDriver cpuDriverPowerPC = {
#endif #endif
.guestData = NULL, .guestData = NULL,
.baseline = ppcBaseline, .baseline = ppcBaseline,
.update = PowerPCUpdate, .update = ppcUpdate,
.hasFeature = NULL, .hasFeature = NULL,
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册