diff options
| author | Rafael J. Wysocki <[email protected]> | 2015-09-16 00:17:49 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2015-09-16 00:17:49 +0000 |
| commit | 1f0bd44e937468446d080b98b5669844744c24a1 (patch) | |
| tree | 74168ece217e8bf201daa329f28db8a83fbe4616 /net/switchdev/switchdev.c | |
| parent | Linux 4.3-rc1 (diff) | |
| download | kernel-1f0bd44e937468446d080b98b5669844744c24a1.tar.gz kernel-1f0bd44e937468446d080b98b5669844744c24a1.zip | |
cpufreq: acpi-cpufreq: Use cpufreq_cpu_get_raw() in ->get()
cpufreq_cpu_get() called by get_cur_freq_on_cpu() is overkill,
because the ->get() callback is always invoked in a context in
which all of the conditions checked by cpufreq_cpu_get() are
guaranteed to be satisfied.
Use cpufreq_cpu_get_raw() instead of it and drop the
corresponding cpufreq_cpu_put() from get_cur_freq_on_cpu().
Signed-off-by: Rafael J. Wysocki <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
