]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu: Rename PowerPCUpdate and PowerPCDataFree functions
authorJiri Denemark <jdenemar@redhat.com>
Thu, 20 Dec 2012 11:38:25 +0000 (12:38 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 19 Apr 2013 12:33:16 +0000 (14:33 +0200)
For consistency with other functions in PowerPC CPU driver, the two
functions are renamed as ppcUpdate and ppcDataFree, respectively.

src/cpu/cpu_powerpc.c

index 162707f3aa9f7289e32e181a2de16aea50f2af32..5f392ee00749486dc5383b14449bd737e0b9e4e9 100644 (file)
@@ -350,7 +350,7 @@ cleanup:
 
 
 static void
-PowerPCDataFree(union cpuData *data)
+ppcDataFree(union cpuData *data)
 {
     if (data == NULL)
         return;
@@ -377,11 +377,12 @@ ppcNodeData(void)
 #endif
 
 static int
-PowerPCUpdate(virCPUDefPtr guest ATTRIBUTE_UNUSED,
+ppcUpdate(virCPUDefPtr guest ATTRIBUTE_UNUSED,
           const virCPUDefPtr host ATTRIBUTE_UNUSED)
 {
    return 0;
 }
+
 static virCPUDefPtr
 ppcBaseline(virCPUDefPtr *cpus,
             unsigned int ncpus,
@@ -478,7 +479,7 @@ struct cpuArchDriver cpuDriverPowerPC = {
     .compare    = ppcCompare,
     .decode     = ppcDecode,
     .encode     = NULL,
-    .free       = PowerPCDataFree,
+    .free       = ppcDataFree,
 #if defined(__powerpc__) || defined(__powerpc64__)
     .nodeData   = ppcNodeData,
 #else
@@ -486,6 +487,6 @@ struct cpuArchDriver cpuDriverPowerPC = {
 #endif
     .guestData  = NULL,
     .baseline   = ppcBaseline,
-    .update     = PowerPCUpdate,
+    .update     = ppcUpdate,
     .hasFeature = NULL,
 };