diff options
| author | Philippe Longepe <[email protected]> | 2016-03-06 07:34:04 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2016-03-10 23:04:58 +0000 |
| commit | a158bed5dc92bd83338225135d448958e0b3745d (patch) | |
| tree | 6d7a975d9efd6809b3379e91b2351b11947a979c /lib/string_helpers.c | |
| parent | intel_pstate: Remove extra conversions in pid calculation (diff) | |
| download | kernel-a158bed5dc92bd83338225135d448958e0b3745d.tar.gz kernel-a158bed5dc92bd83338225135d448958e0b3745d.zip | |
intel_pstate: Optimize calculation for max/min_perf_adj
mul_fp(int_tofp(A), B) expands to:
((A << FRAC_BITS) * B) >> FRAC_BITS, so the same result can be obtained
via simple multiplication A * B. Apply this observation to
max_perf * limits->max_perf and max_perf * limits->min_perf in
intel_pstate_get_min_max()."
Signed-off-by: Philippe Longepe <[email protected]>
Acked-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
