mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
cpufreq: patch target() indirect call to direct one
This looks to be the only frequently executed hook; don't bother patching any other ones. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
51efb4d8f2
commit
f3866e4d9d
1 file changed
+2
-1
@@ -364,7 +364,8 @@ int __cpufreq_driver_target(struct cpufreq_policy *policy,
|
||||
{
|
||||
unsigned int prev_freq = policy->cur;
|
||||
|
||||
retval = cpufreq_driver.target(policy, target_freq, relation);
|
||||
retval = alternative_call(cpufreq_driver.target,
|
||||
policy, target_freq, relation);
|
||||
if ( retval == 0 )
|
||||
TRACE_2D(TRC_PM_FREQ_CHANGE, prev_freq/1000, policy->cur/1000);
|
||||
}
|
||||
|
||||