lkml.org 
[lkml]   [2022]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] ACPI: processor: Add Zhaoxin ACPI _PDC evaluate support
Date
Recent Zhaoxin platforms support ACPI _PDC object, so add Zhaoxin
CPU vendor support in the function arch_has_acpi_pdc().

Signed-off-by: Tony W Wang-oc <TonyWWang-oc@zhaoxin.com>
---
arch/x86/include/asm/acpi.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h
index 65064d9..b719745 100644
--- a/arch/x86/include/asm/acpi.h
+++ b/arch/x86/include/asm/acpi.h
@@ -89,7 +89,8 @@ static inline bool arch_has_acpi_pdc(void)
{
struct cpuinfo_x86 *c = &cpu_data(0);
return (c->x86_vendor == X86_VENDOR_INTEL ||
- c->x86_vendor == X86_VENDOR_CENTAUR);
+ c->x86_vendor == X86_VENDOR_CENTAUR ||
+ c->x86_vendor == X86_VENDOR_ZHAOXIN);
}

static inline void arch_acpi_set_pdc_bits(u32 *buf)
--
2.7.4
\
 
 \ /
  Last update: 2022-06-22 05:45    [W:0.048 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site