Blame SOURCES/0009-add-Hygon-company-description-for-Hygon-CPU-VendorID.patch

510200
From 65de9679d57ceb1fab80f63aa95e519566abd870 Mon Sep 17 00:00:00 2001
510200
From: Lianbo Jiang <lijiang@redhat.com>
510200
Date: Thu, 21 Feb 2019 10:12:15 +0800
510200
Subject: [PATCH 09/10] add Hygon company description for Hygon CPU VendorID
510200
 checking
510200
510200
Backport this patch from upstream.
510200
510200
    commit 4a415a6725fd88e9219e6af92dcdaf88e0dff36e
510200
    Author: hygonsoc <hygonsoc@gmail.com>
510200
    Date:   Wed Dec 26 00:08:00 2018 +0800
510200
510200
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
510200
---
510200
 src/core/cpuinfo.cc | 2 ++
510200
 1 file changed, 2 insertions(+)
510200
510200
diff --git a/src/core/cpuinfo.cc b/src/core/cpuinfo.cc
510200
index 4ad3376..a1c634f 100644
510200
--- a/src/core/cpuinfo.cc
510200
+++ b/src/core/cpuinfo.cc
510200
@@ -456,6 +456,8 @@ string value)
510200
       cpu->setVendorId(value);
510200
       if (value == "AuthenticAMD")
510200
         value = "Advanced Micro Devices [AMD]";
510200
+      if (value == "HygonGenuine")
510200
+        value = "Hygon";
510200
       if (value == "GenuineIntel")
510200
         value = "Intel Corp.";
510200
       cpu->setVendor(value);
510200
-- 
510200
2.17.1
510200