aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorNirmal Abraham <nabrah@codeaurora.org>2015-10-07 16:23:43 +0530
committerArvin Quilao <arquilao@gmail.com>2017-04-21 02:05:44 +0000
commitfc2eabb66dabd1bbfe61c16cf835df42b9936f27 (patch)
treec63cf68bc7743f3738620b55361f49cfee70c223 /lib/mpi/mpicoder.c
parentaffd44e3bebc5cfe9da36e9187a749ea743dffd6 (diff)
cpufreq: Correct the data reported in all_time_in_state
Commit bd9474e059bbb2bb62f7e93894cfc3d3ba473fb2 (cpufreq_stats: Adds the fucntionality to load current values for each frequency for all the cores) introduced a change by which 'cpufreq_allstats_create' gets called at initialization (from 'cpufreq_stats_init' instead of 'cpufreq_stat_notifier_policy'). This causes 'cpufreq_allstate_create' to be called before the freq_table is allocated from 'create_all_freq_table'. Due to this, the data for cpu's which are online at boot are not added to the 'all_freq_table' leading to the incorrect reporting of data when the below sysfs command is run - 'cat sys/devices/system/cpu/cpufreq/all_time_in_state'. Correct this behaviour by altering the cpufreq_stats init sequence by which the memory for 'all_freq_table' is allocated before the 'cpufreq_allstats_create' function is called. Change-Id: I2232dacdc0deec4d1987c418e833fe28f74623fc Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions