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