From patchwork Wed Feb 19 18:35:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dirk.brandewie@gmail.com X-Patchwork-Id: 3682651 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D99FBBF13A for ; Wed, 19 Feb 2014 18:36:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D26920166 for ; Wed, 19 Feb 2014 18:36:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 34DE3201F0 for ; Wed, 19 Feb 2014 18:36:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754621AbaBSSgA (ORCPT ); Wed, 19 Feb 2014 13:36:00 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:34546 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754486AbaBSSfx (ORCPT ); Wed, 19 Feb 2014 13:35:53 -0500 Received: by mail-pb0-f50.google.com with SMTP id rq2so764948pbb.9 for ; Wed, 19 Feb 2014 10:35:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u+XF0l73gGLiEiiKCEegpESjX2Zvkc2MaDYgcbG9BE0=; b=qHjBhY8N8GBkWWBCm2mBXklzT54zqfyWTzhySGSQdvp4WsoJ7+WqW4ksnsQ10R2EsX uLvq0eOYmEXVkkaZAzgPaUSlV0kJ8F/4+GQKKmqI4lu7gg+SlrorJibYSp1qu1c38F45 1JQUJjlVx2JWA+R6MeOBFC3mgOGgZ/Ejn2f44ajQOkdNrv0izb2Zf1tp21fua1vhLbHV anl9ysbkKmswcMtcAgTNQDA01fjjdFmSsprIJCAWK64Z0muSTuKgAc8qyDyY7m1Pqn8e BJKn0w6VO9KHQJmjJY9EU7oPZbBftAWMxHWaYZj+OmRDg1pyY5lY6MqxL+x75oAlfel7 To4Q== X-Received: by 10.68.245.162 with SMTP id xp2mr4030329pbc.69.1392834953112; Wed, 19 Feb 2014 10:35:53 -0800 (PST) Received: from echolake.localdomain (static-50-43-42-35.bvtn.or.frontiernet.net. [50.43.42.35]) by mx.google.com with ESMTPSA id yg4sm6706482pab.19.2014.02.19.10.35.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Feb 2014 10:35:52 -0800 (PST) From: dirk.brandewie@gmail.com To: rjw@rjwysocki.net Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Dirk Brandewie Subject: [PATCH v2] intel_pstate: Use LFM bus ratio as min ratio/P state Date: Wed, 19 Feb 2014 10:35:25 -0800 Message-Id: <1392834925-21648-1-git-send-email-dirk.j.brandewie@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <5856987.3qKttR09W1@vostro.rjw.lan> References: <5856987.3qKttR09W1@vostro.rjw.lan> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dirk Brandewie LFM (max efficiency ratio) is the max frequency at minimum voltage supported by the processor. Using LFM as the minimum P state increases performmance without affecting power. By not using P states below LFM we avoid using P states that are less power efficient. Signed-off-by: Dirk Brandewie --- drivers/cpufreq/intel_pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index b80c03d..ff45ce1 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -356,7 +356,7 @@ static int byt_get_min_pstate(void) { u64 value; rdmsrl(BYT_RATIOS, value); - return value & 0xFF; + return (value >> 8) & 0xFF; } static int byt_get_max_pstate(void)