Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2356222ybb; Sat, 30 Mar 2019 03:04:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPJ1RQTwIf78xcsuo6Z81PA+kg/nvgHWmR0dyNfFDjDsgR+bv+ABpKVVw0+xeNeQJOln+C X-Received: by 2002:a17:902:2:: with SMTP id 2mr3315707pla.61.1553940272034; Sat, 30 Mar 2019 03:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553940272; cv=none; d=google.com; s=arc-20160816; b=0I2yWe3glByblyfQMiCL/LGeBPEw/RL4ljt3xoiWhpR92ft1GLt62Q0NsdCouPYzr7 p6vbmP5k5D63VY9kV00wgF4uo1000CKaRakdWB13i/4Qh3WUvM2iJhHgprvcDYmABElk Goc8AYxLV5UWZeE0KKxDvE3XGe+ioD9wzvJ+qL0baIn9jQuCvQDhj/tap2rcMiuO4ngm ET0VVdg2zLIVSJ+Ru2ulW0E9os1UvO/dZmpywrYylw/m3SKx7dlb+V8xaMdzNmrmST2t rp8gSrnQwDMzf5391RXvgtKhvkFz2qN9W2/kdZ5Pre3l/EVHBJv7sIBvERdGQLa7NHbC wIcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fPgktxmAoVc55FNFVGCEpY8L5UOzA8MrHbl6ThgEQBY=; b=DEn8ArGIcl2KbUczUgGADmsGvUHPZub4eqydk987538POB9bGodv1NNA1f84qvjlUF mf6n9e1SZqGYDJweqK0zvupSRijwNF7fomMWMBwHZt5EvlrbSp5+s5s/vHYBMnDKmU0h gghcPdc/oidKKp4JDjrw+9fFIDxvcqFE4JUS8LSAYZs2JybBYhXoG1LBZVrxywNHTPfP kU+sCy64wLh+hx7sYXsItdPgkahU407uv42ENfRUSmjcX4GpVWPNfMQBuDCUYGXEdEn+ ENOGyqImd1tDTpfN73V545N2mDMGIdLeiKTffZ5t2OLV+pQfuMUeNCIDAPIbNuO914t9 DMjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=TD6HiWvl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11si3879685pgh.548.2019.03.30.03.04.16; Sat, 30 Mar 2019 03:04:32 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=TD6HiWvl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730644AbfC3KC1 (ORCPT + 99 others); Sat, 30 Mar 2019 06:02:27 -0400 Received: from mail.skyhub.de ([5.9.137.197]:46596 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730532AbfC3KC1 (ORCPT ); Sat, 30 Mar 2019 06:02:27 -0400 Received: from zn.tnic (p200300EC2F148A00C43C95AA310C833A.dip0.t-ipconnect.de [IPv6:2003:ec:2f14:8a00:c43c:95aa:310c:833a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3648C1EC066F; Sat, 30 Mar 2019 11:02:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1553940145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=fPgktxmAoVc55FNFVGCEpY8L5UOzA8MrHbl6ThgEQBY=; b=TD6HiWvlY6sw5rz+KHKtZq/YNs0nhajn5roI4hESZnU60puluYUfkimnZDRE0cZhzX53Kx jjuFzrLYxvDMj5x+Yfw217ZDDF8fAmHmZ9Kmg7OaFKM3f5dhv5jXSITcVtUVvgwj0fIiD0 NCtcW+hVHRlwDXYCsx7jknKRgPqMQCo= From: Borislav Petkov To: LKML Cc: Erwan Velu , Len Brown , linux-pm@vger.kernel.org, "Rafael J . Wysocki" , Srinivas Pandruvada , Viresh Kumar Subject: [PATCH] cpufreq/intel_pstate: Do not issue the not supported message on !Intel Date: Sat, 30 Mar 2019 11:02:25 +0100 Message-Id: <20190330100225.14744-1-bp@alien8.de> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Issue the CPU-not-supported message only on Intel machines as this driver is Intel-only. Which means, the print statement can remain KERN_INFO for ease of debugging (no need to enable it first in dynamic debug). While at it, correct it to say CPU "model" which is what that test does. Fixes: 076b862c7e44 ("cpufreq: intel_pstate: Add reasons for failure and debug messages") Signed-off-by: Borislav Petkov Cc: Erwan Velu Cc: Len Brown Cc: linux-pm@vger.kernel.org Cc: Rafael J. Wysocki CC: Srinivas Pandruvada Cc: Viresh Kumar --- drivers/cpufreq/intel_pstate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index ea62e3f02d56..19854f01e2fa 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -2608,7 +2608,9 @@ static int __init intel_pstate_init(void) } else { id = x86_match_cpu(intel_pstate_cpu_ids); if (!id) { - pr_info("CPU ID not supported\n"); + if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) + pr_info("CPU model not supported\n"); + return -ENODEV; } -- 2.21.0