voidgcpu_plug(unsignedintcpu_freq){unsignedlongup_delay, top_freq, bottom_freq;staticboolfirst_call =true;staticcputime64_ttotal_time =0;staticcputime64_tlast_time;cputime64_tcurrent_time;cputime64_tthis_time =0;if(is_plugging) {return; } current_time = ktime_to_ms(ktime_get());...
}elseif((deltatime >1) && (first_flag ==0) &&(!time_chg_flag))//��������֮��ĵ����ظ�,����ʮ����{//printk("--->time_chg_flag =%d\n", time_chg_flag);gBatCapacity = rk2918_battery_resume_get_Capacity(deltatim...
{structtimespecnow;ktime_get_ts(&now);returntimespec_to_ktime(now); } 开发者ID:mikuhatsune001,项目名称:linux-2.6,代码行数:13,代码来源:hrtimer.c 示例5: solo_set_time ▲点赞 1▼ staticvoidsolo_set_time(struct solo6010_dev *solo_dev){structtimespects;ktime_get_ts(&ts); solo_reg_wri...