Re: [Xen-devel] [PATCH v4 09/12] cpufreq: patch target() indirect call to direct one

2018-10-04 Thread Andrew Cooper
On 02/10/18 11:16, Jan Beulich wrote:
> This looks to be the only frequently executed hook; don't bother
> patching any other ones.
>
> Signed-off-by: Jan Beulich 
> Reviewed-by: Wei Liu 

Acked-by: Andrew Cooper 

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

[Xen-devel] [PATCH v4 09/12] cpufreq: patch target() indirect call to direct one

2018-10-02 Thread Jan Beulich
This looks to be the only frequently executed hook; don't bother
patching any other ones.

Signed-off-by: Jan Beulich 
Reviewed-by: Wei Liu 
---
v2: New.

--- a/xen/drivers/cpufreq/utility.c
+++ b/xen/drivers/cpufreq/utility.c
@@ -364,7 +364,8 @@ int __cpufreq_driver_target(struct cpufr
 {
 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);
 }



___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel