[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Robin Cornelius wrote:
I will have to lookup what i did at work and post it, but it uses an inline asembler call to access the CPU clock count register directly.
Here it is :-
and to use it :-
u64 start,end; long time;
PSCHED_GET_TIME(start); mdelay(1); PSCHED_GET_TIME(end); time=end-start; printk("There are %ld clocks per ms\n",time);
Hope this helps
Robin
-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html