From nobody Thu May 15 03:26:27 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1515077909926962.1690537095387; Thu, 4 Jan 2018 06:58:29 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 912BF68559; Thu, 4 Jan 2018 14:58:28 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5C15C5C8A0; Thu, 4 Jan 2018 14:58:28 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 95D3618033D9; Thu, 4 Jan 2018 14:58:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w04EwPVU026560 for ; Thu, 4 Jan 2018 09:58:25 -0500 Received: by smtp.corp.redhat.com (Postfix) id DEF5266A13; Thu, 4 Jan 2018 14:58:25 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.43.2.105]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B1C5667009 for ; Thu, 4 Jan 2018 14:58:23 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id B60B71015E6; Thu, 4 Jan 2018 15:58:21 +0100 (CET) From: Jiri Denemark To: libvir-list@redhat.com Date: Thu, 4 Jan 2018 15:58:10 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: Mail-Followup-To: libvir-list@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/5] cpu_x86: Rename virCPUx86MapInitialize X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 04 Jan 2018 14:58:29 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The function will be used to initialize internal data of the x86 CPU driver (including the CPU map). Signed-off-by: Jiri Denemark --- src/cpu/cpu_x86.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index f514fd2663..fddde64d8c 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -153,8 +153,8 @@ struct _virCPUx86Map { }; =20 static virCPUx86MapPtr cpuMap; -int virCPUx86MapOnceInit(void); -VIR_ONCE_GLOBAL_INIT(virCPUx86Map); +int virCPUx86DriverOnceInit(void); +VIR_ONCE_GLOBAL_INIT(virCPUx86Driver); =20 =20 typedef enum { @@ -1404,7 +1404,7 @@ virCPUx86LoadMap(void) =20 =20 int -virCPUx86MapOnceInit(void) +virCPUx86DriverOnceInit(void) { if (!(cpuMap =3D virCPUx86LoadMap())) return -1; @@ -1416,7 +1416,7 @@ virCPUx86MapOnceInit(void) static virCPUx86MapPtr virCPUx86GetMap(void) { - if (virCPUx86MapInitialize() < 0) + if (virCPUx86DriverInitialize() < 0) return NULL; =20 return cpuMap; --=20 2.15.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list