2

As far as I remember PIT (timer whose irq is 0) emits interrupt 16 or 18 times per second. This frequency (16 or 18 Hz) is just what I need for my application (it should emulate some physical device). Also, as far as I know irq 0 is used for task scheduler and it is triggered much more frequently than 18 Hz.

So, my question is: which is right? 18Hz or much more frequent? Another question is: is it ok to set my own irq 0 handler to be called after task scheduler (set handler with request_irq function)?

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
Sergey Kanaev
  • 570
  • 5
  • 18
  • Are you writing a kernel driver, or userland? Userland question: http://stackoverflow.com/questions/13923885/execute-a-method-every-x-seconds-in-c – Ciro Santilli OurBigBook.com Oct 30 '15 at 20:29
  • @CiroSantilli六四事件法轮功包卓轩 I have an idea for some kind of emulator. The emulator will allow to study some procedures. I'm already aware of POSIX timers but I'd like to not use it. The PIT frequency is just what I would need to perform my calculus in interrupt handler. The userland process will only need to do some arrangements/rearrangements on some very hierarchical cross-refernced data structure. – Sergey Kanaev Oct 31 '15 at 06:49

0 Answers0