Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2977217imm; Sun, 19 Aug 2018 09:16:50 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxwQ/z0fJNF0CVd8FHhE/fQUdTZLnoy1zKw3nslFcee5B0wmb7Ok5hsTZcFlzGsf/MP9mSx X-Received: by 2002:a17:902:42c3:: with SMTP id h61-v6mr18457056pld.319.1534695410102; Sun, 19 Aug 2018 09:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534695410; cv=none; d=google.com; s=arc-20160816; b=OWTdJoqYKDwR/1Ub2GsufAmqmfXT7qplVxg9zUEBEMSxyMInz8qrsiOrGu7Ll0NMx/ 0LpUt3rcdk2EjaHVPGifLLudD0zkPkx85Aojos5IBy3bEEaK9Nvl4CIWKGLKhurA/092 ER+AN8PiDKUMaZ6xE+1MGTDvEBQWHNfWXyxHlX7nPyl9LJhtazuyhGbnHm+9k8ORiUr5 yIntkuvFhdKtxupVSGGsVbLOumazoGeC1dljuzwqJz7ndQtwBj0AtCY1j1NdVht4d5Ys qp9a0OIiJE1ZLCSaXwiQUnotnMXF6WRuR4tJpOQPAaWl32n3dP7NJeGczXE2IaDPGc/k 86ug== 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=sxruyjxEZnlstx9gtK/Ll0+uXiNlPbzfemAS1XuoevK1PLwkpQF4iehwfb3gdfSdSV K1oeW0OwfREOUhs4VIeFD6d3ItvIpNY1F6w6JpIQP/WQ+wS0VOkRr+h7VtElURlbHEUU zsMCNZ7a/ZEUhEu9ufHUG5giY2aYMJ95CBebjaUamJXW2JmxIw2tpzbBWh8tV0TkjuNy 2J2zNZFgywK/x3klor2LwrgL3GBkzct6OMyp1lT6QWutaR2odj65jbX3r8/9do2TVypo erYxbL6wvXmT7EsPmaNXbUxOI54pBm9GirmZuHwLaP4QleYZ/47txBQd85EzNY6b1ksP Yqtw== 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 cb1-v6si8130071plb.128.2018.08.19.09.16.34; Sun, 19 Aug 2018 09:16:50 -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 S1726814AbeHST0z (ORCPT + 99 others); Sun, 19 Aug 2018 15:26:55 -0400 Received: from smtp20.cstnet.cn ([159.226.251.20]:56482 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726618AbeHST0z (ORCPT ); Sun, 19 Aug 2018 15:26:55 -0400 Received: from localhost.localdomain (unknown [110.184.154.248]) by APP-10 (Coremail) with SMTP id tACowADX3WFtl3lb2duwAg--.12S2; Mon, 20 Aug 2018 00:14:42 +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 v4 13/16] driver/acpi: enable Hygon support to ACPI driver Date: Mon, 20 Aug 2018 00:14:17 +0800 Message-Id: <3264be92a112b331094f60ef9b5e8c3e4a8e5034.1534599097.git.puwen@hygon.cn> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CM-TRANSID: tACowADX3WFtl3lb2duwAg--.12S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtw4DZr4rXF1xKr1kuF47twb_yoWkZFX_uF 1vkr1xJa1vkF4kXF47GrsxZryjy3Z7WF1kXrnFqa1fCr1xZry3Ja4jq3Z8Xr1jva93KFsI vw1qgr1j9r13CjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbIxFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8Jr 0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj 6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr 0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4IIrI8v6xkF7I0E 8cxan2IY04v7MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I 8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8 ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r4j6ryUMIIF0xvE2Ix0cI8IcVCY1x 0267AKxVW8Jr0_Cr1UMIIF0xvE42xK8VAvwI8IcIk0rVW8JVW3JwCI42IY6I8E87Iv67AK xVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4UJVWxJrUvcSsGvfC2KfnxnUUI43ZEXa 7VUbjQ6JUUUUU== X-Originating-IP: [110.184.154.248] 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