Thread (40 messages) 40 messages, 6 authors, 2014-03-22

Re: [PATCH v3 5/5] powernv:cpufreq: Implement the driver->get() method

flat view

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2014-03-21 13:12:50
Also in: linux-pm

On 21 March 2014 18:34, Gautham R Shenoy [off-list ref] wrote:
Consider the case when pmspr = 0x00feffffffffffff;

We are interested in extracting the value 'fe'. And ensure that when
we store this value into an int, we get the sign extension right.

So the following doesn't work:

   pstate_id = (pmspr_val >> 48) & 0xFFFFFFFF;
What about pstate_id = (pmspr_val >> 48) & 0xFF; ??
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help