diff options
author | Sudeep Holla <[email protected]> | 2023-11-30 20:43:43 +0000 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2023-12-04 12:33:44 +0000 |
commit | 77f5032e94f244ba08db51e17ca8f37bd7ff9acb (patch) | |
tree | d8973a87c51a6ac1eb7b05db8745a382b24b4cd7 /scripts/generate_rust_analyzer.py | |
parent | 8e3c98d9187e09274fc000a7d1a77b070a42d259 (diff) |
firmware: arm_scmi: Fix possible frequency truncation when using level indexing mode
The multiplier is already promoted to unsigned long, however the
frequency calculations done when using level indexing mode doesn't
use the multiplier computed. It instead hardcodes the multiplier
value of 1000 at all the usage sites.
Clean that up by assigning the multiplier value of 1000 when using
the perf level indexing mode and update the frequency calculations to
use the multiplier instead. It should fix the possible frequency
truncation for all the values greater than or equal to 4GHz on 64-bit
machines.
Fixes: 31c7c1397a33 ("firmware: arm_scmi: Add v3.2 perf level indexing mode support")
Reported-by: Sibi Sankar <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Cc: Cristian Marussi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Cristian Marussi <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions