mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
cpufreq: use existing local var in cpufreq_statistic_init()
..., which actually also helps readability (imo). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
16d5d2292a
commit
c6e0a55396
1 file changed
+3
-3
@@ -130,10 +130,10 @@ int cpufreq_statistic_init(unsigned int cpu)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
pxpt->u.total = pmpt->perf.state_count;
|
||||
pxpt->u.usable = pmpt->perf.state_count - pmpt->perf.platform_limit;
|
||||
pxpt->u.total = count;
|
||||
pxpt->u.usable = count - pmpt->perf.platform_limit;
|
||||
|
||||
for (i=0; i < pmpt->perf.state_count; i++)
|
||||
for ( i = 0; i < count; i++ )
|
||||
pxpt->u.pt[i].freq = pmpt->perf.states[i].core_frequency;
|
||||
|
||||
pxpt->prev_state_wall = NOW();
|
||||
|
||||