lkml.org 
[lkml]   [2010]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectIssues in Linux HPET example
From
Hello,

By executing Documentation/timers/hpet_example.c

for polling, I requested for 3 iterations but it seems iteration work
for only 2 as first expired time is always very small.

[root@netbook timers]# ./hpet_example poll /dev/hpet 10 3
-hpet: executing poll
hpet_poll: info.hi_flags 0x0
hpet_poll: expired time = 0x13
hpet_poll: revents = 0x1
hpet_poll: data 0x1
hpet_poll: expired time = 0x1868c
hpet_poll: revents = 0x1
hpet_poll: data 0x1
hpet_poll: expired time = 0x18645
hpet_poll: revents = 0x1
hpet_poll: data 0x1
[root@netbook timers]#

for fasync, I requested for 3 iterations but it shows 4 counts.

[root@netbook timers]# ./hpet_example fasync /dev/hpet 10 3
-hpet: executing fasync
hpet_fasync: info.hi_flags 0x0
hpet_sigio: called
hpet_sigio: called
hpet_fasync: count = 2
hpet_sigio: called
hpet_fasync: count = 3
hpet_sigio: called
hpet_fasync: count = 4
[root@netbook timers]#

How can I fix these issues.

Thanks,
--
Jaswinder Singh.


\
 
 \ /
  Last update: 2010-09-01 14:49    [W:0.034 / U:1.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site