]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu_x86: Rename virCPUx86MapInitialize
authorJiri Denemark <jdenemar@redhat.com>
Wed, 13 Dec 2017 21:30:31 +0000 (22:30 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 4 Jan 2018 15:52:03 +0000 (16:52 +0100)
The function will be used to initialize internal data of the x86 CPU
driver (including the CPU map).

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/cpu/cpu_x86.c

index f514fd26632fa0f2f81a1b3f2545092977e3a636..fddde64d8cd95f9584980e951082c65c00c20d71 100644 (file)
@@ -153,8 +153,8 @@ struct _virCPUx86Map {
 };
 
 static virCPUx86MapPtr cpuMap;
-int virCPUx86MapOnceInit(void);
-VIR_ONCE_GLOBAL_INIT(virCPUx86Map);
+int virCPUx86DriverOnceInit(void);
+VIR_ONCE_GLOBAL_INIT(virCPUx86Driver);
 
 
 typedef enum {
@@ -1404,7 +1404,7 @@ virCPUx86LoadMap(void)
 
 
 int
-virCPUx86MapOnceInit(void)
+virCPUx86DriverOnceInit(void)
 {
     if (!(cpuMap = virCPUx86LoadMap()))
         return -1;
@@ -1416,7 +1416,7 @@ virCPUx86MapOnceInit(void)
 static virCPUx86MapPtr
 virCPUx86GetMap(void)
 {
-    if (virCPUx86MapInitialize() < 0)
+    if (virCPUx86DriverInitialize() < 0)
         return NULL;
 
     return cpuMap;