c313de
From ea8bf8889659145cbf53306e3d16357f40679e4e Mon Sep 17 00:00:00 2001
c313de
Message-Id: <ea8bf8889659145cbf53306e3d16357f40679e4e@dist-git>
c313de
From: Jiri Denemark <jdenemar@redhat.com>
c313de
Date: Fri, 21 Jun 2019 09:25:27 +0200
c313de
Subject: [PATCH] cpu_x86: Rename virCPUx86CPUIDSorter
c313de
MIME-Version: 1.0
c313de
Content-Type: text/plain; charset=UTF-8
c313de
Content-Transfer-Encoding: 8bit
c313de
c313de
It is called virCPUx86DataSorter since the function will work on any CPU
c313de
data type.
c313de
c313de
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c313de
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c313de
(cherry picked from commit 95accfa7fa15b21bf4824b55be666312d11c273a)
c313de
c313de
https://bugzilla.redhat.com/show_bug.cgi?id=1697627
c313de
c313de
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c313de
Message-Id: <4661aa497f1b8d9b5ca1383a91affe24cd54caa9.1561068591.git.jdenemar@redhat.com>
c313de
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c313de
---
c313de
 src/cpu/cpu_x86.c | 4 ++--
c313de
 1 file changed, 2 insertions(+), 2 deletions(-)
c313de
c313de
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
c313de
index 52709f109e..efb2a3bb07 100644
c313de
--- a/src/cpu/cpu_x86.c
c313de
+++ b/src/cpu/cpu_x86.c
c313de
@@ -286,7 +286,7 @@ x86FeatureFindInternal(const char *name)
c313de
 
c313de
 
c313de
 static int
c313de
-virCPUx86CPUIDSorter(const void *a, const void *b)
c313de
+virCPUx86DataSorter(const void *a, const void *b)
c313de
 {
c313de
     virCPUx86DataItemPtr da = (virCPUx86DataItemPtr) a;
c313de
     virCPUx86DataItemPtr db = (virCPUx86DataItemPtr) b;
c313de
@@ -391,7 +391,7 @@ virCPUx86DataAddCPUIDInt(virCPUx86Data *data,
c313de
             return -1;
c313de
 
c313de
         qsort(data->items, data->len,
c313de
-              sizeof(virCPUx86DataItem), virCPUx86CPUIDSorter);
c313de
+              sizeof(virCPUx86DataItem), virCPUx86DataSorter);
c313de
     }
c313de
 
c313de
     return 0;
c313de
-- 
c313de
2.22.0
c313de