From patchwork Wed Feb 12 18:01:06 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: 3639781 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 06378BF13A for ; Wed, 12 Feb 2014 18:03:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3BE0F2012E for ; Wed, 12 Feb 2014 18:03:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 518BA2015D for ; Wed, 12 Feb 2014 18:03:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753424AbaBLSBj (ORCPT ); Wed, 12 Feb 2014 13:01:39 -0500 Received: from mail-pd0-f179.google.com ([209.85.192.179]:55035 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753265AbaBLSBh (ORCPT ); Wed, 12 Feb 2014 13:01:37 -0500 Received: by mail-pd0-f179.google.com with SMTP id fp1so8968779pdb.10 for ; Wed, 12 Feb 2014 10:01:36 -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=yohW9uUR8OGqGZTvY7mIH8AK30wypBGvnlT4ltL/hjk=; b=VQaJ0lZfFTbge9uVhaTmjmVb/l7FInxuZu/dx1yLB87SCqgEG3Gg2gocfpYV80s4tC xXBzXjElIHvkKITNOfleZMTOy9ndlnDk0PPs4ag4cz0jyyyYCCSSXWZq4sEJ7jtz/464 GFB1HUg9Beih+Qn96r6+lmAwrWWidwVzzkQ3oVe6FpAvCegCUDNLy6puIKCwgBFgbocP w9c/4iNKcPO1ge2N7hIOxli0ImfusN9aJ2bCg/Yo8dQEwOSgWQJ2OmOutt6rC6U2PpGO gKjFiNZuLyKEJ9wQx321Mdj70EErev3vWYTp2yO+m31TzeMMyKqA2PnaPUBgUr+Ob7ih XHQQ== X-Received: by 10.68.139.73 with SMTP id qw9mr52129883pbb.121.1392228096790; Wed, 12 Feb 2014 10:01:36 -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 ss2sm66199689pab.8.2014.02.12.10.01.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Feb 2014 10:01:35 -0800 (PST) From: dirk.brandewie@gmail.com To: linux-pm@vger.kernel.org, rjw@rjwysocki.net Cc: linux-kernel@vger.kernel.org, Dirk Brandewie Subject: [PATCH 4/5] intel_pstate: Use LFM bus ratio as min ratio/P state Date: Wed, 12 Feb 2014 10:01:06 -0800 Message-Id: <1392228067-14817-5-git-send-email-dirk.j.brandewie@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1392228067-14817-1-git-send-email-dirk.j.brandewie@intel.com> References: <1392228067-14817-1-git-send-email-dirk.j.brandewie@intel.com> 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.4 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=unavailable 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 Using LFM ratio provides better perf/watt vs min ratio. 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)