title: How fast can kernel module handle interrupts?
body: <p>I'm writing a kernel module on embedded Linux (Yocto distribution), and I wanted to handle some high-frequency interrupts from one of the hardware timers. However, I see that 1us resolution is too high for Linux(?) - I think so because the values are incorrect.
  The code is simple:</p>
  
  <pre><code>static irqreturn_t pmodule_ref2_irq(int irq, void *lp)
  {
          unsigned long int temp;
          ns++;
          temp = ioread32(temp_base_addr + TTC1_INTERRUPT_REGISTER);
          return IRQ_HANDLED;
  }
  </code></pre>
  
  <p>Changing Interval value to 100x higher fixes the problem but my resolution is not satisfactory.</p>
  
  <p>My question is: can anyone tell me how fast the <strong>kernel module</strong> Interrupt can be handled, or how can I check it?</p>