Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp514886imm; Wed, 29 Aug 2018 05:47:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaASL4VEIhCObdzpg7e8S2qWiHSVG6Rfcy6Tx/kGrzZ/rKZejw+s7l2w448Yeyy1WMLXb3Y X-Received: by 2002:a17:902:8303:: with SMTP id bd3-v6mr5803208plb.264.1535546857367; Wed, 29 Aug 2018 05:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535546857; cv=none; d=google.com; s=arc-20160816; b=HB+7d1Ir/z9b+Ax+tvtq8WrocZsEdw02hcHeby5W5J6A36ELlZMvPKbveDjUTD7iKH jnpQrtu71UhraPGSenOpw07clUPjqvvqecw877K062/RItEkbX94f583BKvRfQIpWfbG OaiqsHbVq9/z+JuCFeQRYqkP9OqMQQSdQsEpKav76H6AGvonnbQUebV1aAzOE/X9mZzz UifNomE8EXFkpTymvRUuHFZU2l9zZEcuf6VINByH0vljI3PjOA+ZKg5sNXwOBTW67fi9 KFOXBzisgyThEn6brYKTzL5WnJATmncCB3FPLuJsSBh7EZ4qY9fXE8BGSn2KuaF9txU+ LgRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=8PlWVGrmSBOAAEPiV8XONfYoIeaLYEj3iefOErBk+4g=; b=irBcvgdPoIEsIx4dKhn0l6fkYU74KY6BBfsueI2EmhcOlqK62IqCumNZuzzehE8/CV 39vwTewh23u8F13H1xBriTtmdCu9Iabpx2QT+o7psmEMEGNoklFVPm9Z8eut+1gJEdtb a8Jt15q2lvkBYRmsA1xcyT0nvTBWA2TPPvoK4YZZpvHL224/QOEb3AqgW2vQoAgsvRQv AFQQgcmCad/m0S70SiC6Kxj9eBM1RZx4SUsL03ebjC1Ywgo7bW3hawYTPUi9mGR+c77w VG+xGbii4GItWGgnS2/OqK6bOk0j5N6oGH8CgHteyGfb7Ujl1ISGqmEZKkduyoR9DLLn il4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o20-v6si3751109pgk.120.2018.08.29.05.47.22; Wed, 29 Aug 2018 05:47:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728734AbeH2Qmc (ORCPT + 99 others); Wed, 29 Aug 2018 12:42:32 -0400 Received: from smtp17.cstnet.cn ([159.226.251.17]:50386 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728144AbeH2Qmb (ORCPT ); Wed, 29 Aug 2018 12:42:31 -0400 Received: from pw-vbox.higon.com (unknown [182.150.46.145]) by APP-09 (Coremail) with SMTP id swCowACXnJBllYZbeaP_BA--.110S2; Wed, 29 Aug 2018 20:45:29 +0800 (CST) From: Pu Wen To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, bp@alien8.de, pbonzini@redhat.com, lenb@kernel.org, rjw@rjwysocki.net, rafael@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-acpi@vger.kernel.org, Pu Wen Subject: [PATCH v5 13/16] driver/acpi: enable Hygon support to ACPI driver Date: Wed, 29 Aug 2018 20:45:25 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CM-TRANSID: swCowACX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T uYvjfUo9NVDUUUU X-Originating-IP: [182.150.46.145] X-CM-SenderInfo: psxzv046klw03qof0z/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For Dhyana processors have NONSTOP TSC feature, so enable the support to ACPI driver. Acked-by: Rafael J. Wysocki Signed-off-by: Pu Wen --- drivers/acpi/acpi_pad.c | 1 + drivers/acpi/processor_idle.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 552c1f7..a47676a 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -70,6 +70,7 @@ static void power_saving_mwait_init(void) #if defined(CONFIG_X86) switch (boot_cpu_data.x86_vendor) { + case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: /* diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index abb559c..b2131c4 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -205,6 +205,7 @@ static void lapic_timer_state_broadcast(struct acpi_processor *pr, static void tsc_check_state(int state) { switch (boot_cpu_data.x86_vendor) { + case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: case X86_VENDOR_CENTAUR: -- 2.7.4