bc = tick_broadcast_device.evtdev;cpumask_clear_cpu(cpu, tick_get_broadcast_mask());if(tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) {if(bc && cpumask_empty(tick_get_broadcast_mask())) clockevents_shutdown(bc); } raw_spin_unlock_irqrestore(&tick_broadcast_lock, flags); } 开...
[ Upstream commit f451014 ] If new_policy is set in cpufreq_online(), the policy object has just been created and its real_cpus mask has been zeroed on allocation, and the driver's ->init() callback should not touch it. It doesn't need to be cleared again, so don't do that. ...
staticintset_cpu_min_freq(constchar*buf,conststruct kernel_param *kp){inti, j, ntokens =0;unsignedintval, cpu;constchar*cp = buf;structcpu_status*i_cpu_stats;structcpufreq_policypolicy;cpumask_var_tlimit_mask;intret;while((cp =strpbrk(cp +1," :"))) ntokens++;if(!(ntokens %2))...