@@ -3238,6 +3238,7 @@ static inline unsigned long rlimit_max(unsigned int limit)
struct update_util_data {
void (*func)(struct update_util_data *data,
u64 time, unsigned long util, unsigned long max);
+ int cpu;
};
void cpufreq_add_update_util_hook(int cpu, struct update_util_data *data,
@@ -42,6 +42,7 @@ void cpufreq_add_update_util_hook(int cpu, struct update_util_data *data,
return;
data->func = func;
+ data->cpu = cpu;
rcu_assign_pointer(per_cpu(cpufreq_update_util_data, cpu), data);
}
EXPORT_SYMBOL_GPL(cpufreq_add_update_util_hook);
Upcoming support for scheduler cpufreq callbacks on remote wakeups will require the client to know what the target CPU is that the callback is being invoked for. Add this information into the callback data structure. Signed-off-by: Steve Muckle <smuckle@linaro.org> --- include/linux/sched.h | 1 + kernel/sched/cpufreq.c | 1 + 2 files changed, 2 insertions(+) -- 2.4.10