From patchwork Fri Sep 13 12:59:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20074 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 02C60202E6 for ; Fri, 13 Sep 2013 13:05:25 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id u18sf1190187qcx.2 for ; Fri, 13 Sep 2013 06:05:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=ydxGj1sQF8k3JULRWh1kGs1vGZhlw5JAiucU/92Vk1c=; b=OwXcKFzRLLIqKBu9+HGuL6FNlQa9li5AEJUr/PmRFHjA54aC6C/qS1DE71wj9WGdzV O0SDRchYBKyg3/6mLGZcU03KWqcDgFfvWU3SO8aMSokMUtm7L5ayVHaCYwlNWje0E0uL RvcXdOgUBSZAQCXw9tWGliIWj79m/dFsX27r1UuztK4XYiflOt1VnQrKkbHwCdfcEhoC qkBLbwLTqPM2b/DtNO+N32Iop8g16vfuAUSYEc1LJvrGicvZitmNUa/+aOXT1BVnlKac 9R3RZNUUoR/a4DFhzhiskdPKL8m/CZU4Q/urMbhJzxUKG7wQ/XDgpPgsP5bI1zc0ub/O hzbg== X-Gm-Message-State: ALoCoQl9fddWeNHmwRU/y0o/GWqda6Q5hVGQhPHenxU2X76QTgeR5+a0oyrv/Foioz30GyTQxZzq X-Received: by 10.58.32.167 with SMTP id k7mr4074vei.41.1379077525777; Fri, 13 Sep 2013 06:05:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.74.69 with SMTP id r5ls1185276qev.1.gmail; Fri, 13 Sep 2013 06:05:25 -0700 (PDT) X-Received: by 10.220.199.5 with SMTP id eq5mr11939053vcb.16.1379077525557; Fri, 13 Sep 2013 06:05:25 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id un5si3108144vcb.22.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id ha12so877959vcb.23 for ; Fri, 13 Sep 2013 06:05:25 -0700 (PDT) X-Received: by 10.220.164.70 with SMTP id d6mr11756572vcy.19.1379077525435; Fri, 13 Sep 2013 06:05:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp79518vcz; Fri, 13 Sep 2013 06:05:24 -0700 (PDT) X-Received: by 10.66.158.196 with SMTP id ww4mr15365648pab.57.1379077523670; Fri, 13 Sep 2013 06:05:23 -0700 (PDT) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by mx.google.com with ESMTPS id iv2si11201181pac.61.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.52 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.52; Received: by mail-pa0-f52.google.com with SMTP id kq13so2490405pab.39 for ; Fri, 13 Sep 2013 06:05:23 -0700 (PDT) X-Received: by 10.66.136.227 with SMTP id qd3mr14966153pab.113.1379077523258; Fri, 13 Sep 2013 06:05:23 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id sb9sm11675492pbb.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:05:22 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Viresh Kumar Subject: [PATCH 020/228] cpufreq: e_powersaver: use cpufreq_table_validate_and_show() Date: Fri, 13 Sep 2013 18:29:26 +0530 Message-Id: <3c5da1bd55b23a53941ab2bbab5cc68941323b60.1379063063.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Signed-off-by: Viresh Kumar --- drivers/cpufreq/e_powersaver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/e_powersaver.c b/drivers/cpufreq/e_powersaver.c index 09f64cc..c1b7c99 100644 --- a/drivers/cpufreq/e_powersaver.c +++ b/drivers/cpufreq/e_powersaver.c @@ -403,13 +403,12 @@ static int eps_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 140000; /* 844mV -> 700mV in ns */ policy->cur = fsb * current_multiplier; - ret = cpufreq_frequency_table_cpuinfo(policy, ¢aur->freq_table[0]); + ret = cpufreq_table_validate_and_show(policy, ¢aur->freq_table[0]); if (ret) { kfree(centaur); return ret; } - cpufreq_frequency_table_get_attr(¢aur->freq_table[0], policy->cpu); return 0; }