From patchwork Fri Jul 18 15:37:22 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: 4586311 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 25E0EC0514 for ; Fri, 18 Jul 2014 15:38:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D06220160 for ; Fri, 18 Jul 2014 15:38:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C6C4A201C0 for ; Fri, 18 Jul 2014 15:37:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422811AbaGRPhu (ORCPT ); Fri, 18 Jul 2014 11:37:50 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:47328 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422773AbaGRPht (ORCPT ); Fri, 18 Jul 2014 11:37:49 -0400 Received: by mail-pa0-f52.google.com with SMTP id bj1so5641458pad.11 for ; Fri, 18 Jul 2014 08:37:48 -0700 (PDT) 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=lNUp9veiGFEsgBiMZ7W1FZ9iSwTGgdLPvswiiunV4NY=; b=USBBYUg6rcCCs3yDpUOxnsBI7NCXke7JuZB5RPLiFs9MfevaD7uCk2rXi8oGteEGuW Ry18kHpYZddcAtsTzqhzF9gGC71HGGkTvHw3dEsPPJ0NG4WNabej0Pft17P+FHcPt+LX lkRy15yEOOysgitF8fkD50qKppUMfrZf6WhKSY2+XrfPHsNDuFY2EBRTqCDEcZj+qg1V TikxUa71VN0enlBSq5X9lxMALq7cJ38I5JR11SBCQMS/RTbejYUBA87c/0eIy6OnojeB FEtBvvqDsRxcxi7OOm8xNXc4CFHLzC9nxHxrdf4MozQ77kxXcaZSLVsY5JuMhSmQB/vI drlw== X-Received: by 10.66.231.40 with SMTP id td8mr6022294pac.107.1405697868388; Fri, 18 Jul 2014 08:37:48 -0700 (PDT) Received: from echolake.localdomain (static-50-43-41-81.bvtn.or.frontiernet.net. [50.43.41.81]) by mx.google.com with ESMTPSA id be7sm7894439pdb.37.2014.07.18.08.37.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jul 2014 08:37:47 -0700 (PDT) From: dirk.brandewie@gmail.com X-Google-Original-From: dirk.j.brandewie@intel.com To: linux-pm@vger.kernel.org Cc: rjw@rjwysocki.net, Stratos Karafotis , Dirk Brandewie Subject: [PATCH 06/11] cpufreq: intel_pstate: Remove unnecessary intermediate variable sample_time Date: Fri, 18 Jul 2014 08:37:22 -0700 Message-Id: <1405697848-13546-7-git-send-email-dirk.j.brandewie@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1405697848-13546-1-git-send-email-dirk.j.brandewie@intel.com> References: <1405697848-13546-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=-6.8 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: Stratos Karafotis Remove the unnecessary intermediate assignment and use directly the pid_params.sample_rate_ms variable. Signed-off-by: Stratos Karafotis Signed-off-by: Dirk Brandewie --- drivers/cpufreq/intel_pstate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index dee9e58..e0ed078 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -599,10 +599,9 @@ static inline void intel_pstate_sample(struct cpudata *cpu) static inline void intel_pstate_set_sample_time(struct cpudata *cpu) { - int sample_time, delay; + int delay; - sample_time = pid_params.sample_rate_ms; - delay = msecs_to_jiffies(sample_time); + delay = msecs_to_jiffies(pid_params.sample_rate_ms); mod_timer_pinned(&cpu->timer, jiffies + delay); }