diff options
| author | Xueqin Luo <luoxueqin@kylinos.cn> | 2026-08-31 13:44:38 +0800 |
|---|---|---|
| committer | Viresh Kumar <viresh.kumar@linaro.org> | 2026-10-05 09:26:03 +0530 |
| commit | e5b33fa47792375ca7fc49ccadee87d8e4b72929 (patch) | |
| tree | 084e450df5c6fb19a52a8e57a88911e12ddef28a /tools/perf/scripts/python/flamegraph.py | |
| parent | 02c5d7bfa8724789f6620f7787532666edc891a1 (diff) | |
cpufreq: sparc-us2e: fix frequency table index copy-paste error
In us2e_freq_cpu_init(), the last two frequency writes both use
index [2] instead of [3] and [4] respectively, and the terminator
uses [3] instead of [5]. This is a copy-paste error where the index
was not incremented, causing the divider-6 and divider-8 entries to
overwrite the already-written divider-4 entry.
As a result, only three frequency steps (div 1, 2, and 4) are actually
available to the cpufreq core, while the intended dividers 6 and 8 are
silently lost. The struct us2e_freq_percpu_info::table[6] has room for
5 entries plus a terminator, matching the 5 hardware dividers.
Fix the indices so all five frequency steps are correctly populated:
table[0]=div1, table[1]=div2, table[2]=div4, table[3]=div6,
table[4]=div8, table[5]=TABLE_END.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Xueqin Luo <luoxueqin@kylinos.cn>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
