Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1440817
| Path | csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Viresh Kumar <viresh.kumar@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] cpufreq: powernv: Replacing pstate_id with frequency table index |
| Date | Mon, 11 Jul 2016 20:50:02 +0200 |
| Message-ID | <rTOrg-2mb-15@gated-at.bofh.it> (permalink) |
| References | <rPDE5-67b-1@gated-at.bofh.it> |
| X-Original-To | Akshay Adiga <akshay.adiga@linux.vnet.ibm.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZegizHNDpvZAfeoF0AGNJAvZAsvFCq6EfmZYHddxuV4=; b=AB/KJ94Lm1oI6a0Q+d+XFvoFc0CIxinI1x5gVIC3ilj7sbxpp2j61Bq7yWNQ1VUKRT iuby8CPfJT518jJCq0FtMVTpbjESTkH9weo1/jx832MeZFxGMSbxYOYB8BNzcWrudyJT Mb4Xu/AEkzdIeQ2bwbJkqmhPjNILqeVKtoND0= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZegizHNDpvZAfeoF0AGNJAvZAsvFCq6EfmZYHddxuV4=; b=OpP5cCbBssJEXHYKoz5hixdRxPwjqvbMG5dLbldZ6jXm3b7uv9wDDohGtTT0sPNn3x h+SUEMCgcSSP6e2SWUf3r1JYky/xXOPMt1SnNRscLfoV0Jd8adtQ9/B4haGdr8Wi94nM r4pM2GIMKBiz2xIIyS/VygJVMgY5+VQYvDp+kOoFFtQVnuVFItzn9LRRE1okblkghS8g CZqepVWScM8ISCyGFKohYTHF8z/F5TATPUb9UfvYpTtRwYLSW4dzfvPjmOK8yi93oVbm zvWbAYJboX20dMmuMO2xMHltGB1dWJG0XKALvJQSazc2suvo5c5loHo5lL2/PPeSuZa3 +Mzw== |
| X-Gm-Message-State | ALyK8tIVlHRBnl3zyxkxDllAP4YqvJ6OWawOg6E56KloFZEsTs6VxR3uLHKSx/UggfQErM1c |
| X-Received | by 10.66.248.35 with SMTP id yj3mr37359780pac.138.1468262874533; Mon, 11 Jul 2016 11:47:54 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.24 (2015-08-30) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, ego@linux.vnet.ibm.com, paulus@ozlabs.org, mpe@ellerman.id.au |
| X-Original-Date | Mon, 11 Jul 2016 11:47:53 -0700 |
| X-Original-Message-ID | <20160711184753.GD4695@ubuntu> |
| X-Original-References | <1467267787-2622-1-git-send-email-akshay.adiga@linux.vnet.ibm.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1440817 |
Show key headers only | View raw
On 30-06-16, 11:53, Akshay Adiga wrote: > Refactoring code to use frequency table index instead of pstate_id. > This abstraction will make the code independent of the pstate values. > > - No functional changes > - The highest frequency is at frequency table index 0 and the frequency > decreases as the index increases. > - Macros pstates_to_idx() and idx_to_pstate() can be used for conversion > between pstate_id and index. > - powernv_pstate_info now contains frequency table index to min, max and > nominal frequency (instead of pstate_ids) > - global_pstate_info new stores index values instead pstate ids. > - variables renamed as *_idx which now store index instead of pstate > > Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com> > Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com> > --- > Changes from v1: > - changed macro names from get_pstate()/ get_index() to > idx_to_pstate()/ pstate_to_idx() > - Renamed variables that store index instead of pstate_id to *_idx > - Retained previous printk's > > v1 : http://marc.info/?l=linux-pm&m=146677701501225&w=1 > > drivers/cpufreq/powernv-cpufreq.c | 177 ++++++++++++++++++++++---------------- > 1 file changed, 102 insertions(+), 75 deletions(-) Haven't done in-depth review, but I trust that Gautham has done it :) Acked-by: Viresh Kumar <viresh.kumar@linaro.org> -- viresh
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH v2] cpufreq: powernv: Replacing pstate_id with frequency table index Viresh Kumar <viresh.kumar@linaro.org> - 2016-07-11 20:50 +0200 Re: [PATCH v2] cpufreq: powernv: Replacing pstate_id with frequency table index "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-07-16 03:00 +0200
csiph-web