Loading kernel/sched/walt.c +5 −0 Original line number Diff line number Diff line Loading @@ -2478,14 +2478,19 @@ core_initcall(register_walt_callback); int register_cpu_cycle_counter_cb(struct cpu_cycle_counter_cb *cb) { unsigned long flags; mutex_lock(&cluster_lock); if (!cb->get_cpu_cycle_counter) { mutex_unlock(&cluster_lock); return -EINVAL; } acquire_rq_locks_irqsave(cpu_possible_mask, &flags); cpu_cycle_counter_cb = *cb; use_cycle_counter = true; release_rq_locks_irqrestore(cpu_possible_mask, &flags); mutex_unlock(&cluster_lock); cpufreq_unregister_notifier(¬ifier_trans_block, Loading Loading
kernel/sched/walt.c +5 −0 Original line number Diff line number Diff line Loading @@ -2478,14 +2478,19 @@ core_initcall(register_walt_callback); int register_cpu_cycle_counter_cb(struct cpu_cycle_counter_cb *cb) { unsigned long flags; mutex_lock(&cluster_lock); if (!cb->get_cpu_cycle_counter) { mutex_unlock(&cluster_lock); return -EINVAL; } acquire_rq_locks_irqsave(cpu_possible_mask, &flags); cpu_cycle_counter_cb = *cb; use_cycle_counter = true; release_rq_locks_irqrestore(cpu_possible_mask, &flags); mutex_unlock(&cluster_lock); cpufreq_unregister_notifier(¬ifier_trans_block, Loading