public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
From: Christian Kraus <chk.dax@gmx.de>
To: linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: Interrupt Latency 2.6.33.7 rt30
Date: Thu, 25 Aug 2011 23:03:33 +0200	[thread overview]
Message-ID: <4E56B8A5.6080306@gmx.de> (raw)

Hello
I have wrote a GPIO-driver, that toggle the value of a GPIO when a 
interrupt is comming from an another GPIO.
When I measure the latency between the interrupt and the toggled Pin 
it's about ten times higher than without the rt-patch.
(without Patch = 8-11 us
  with Patch = 30-110 us)

Can anybody help me please?

I have a Beagleboard with an Omap-Arm running.

Here are the changes in gpio_keys.c:

static irqreturn_t gpio_keys_isr(int irq, void *dev_id)
{
     struct gpio_button_data *bdata = dev_id;
     struct gpio_keys_button *button = bdata->button;

     BUG_ON(irq != gpio_to_irq(button->gpio));

     if (button->debounce_interval)
     {
         mod_timer(&bdata->timer,
             jiffies + msecs_to_jiffies(button->debounce_interval));



     }
     else
     {
     //    schedule_work(&bdata->work);

         if(gpio_get_value(158)==0)
         {
             gpio_set_value(158, 1);
         }
         else
         {
             gpio_set_value(158, 0);
         }


     }

     return IRQ_HANDLED;
}


Thx Christian


             reply	other threads:[~2011-08-25 21:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25 21:03 Christian Kraus [this message]
2011-08-26  7:48 ` Interrupt Latency 2.6.33.7 rt30 Uwe Kleine-König
2011-09-01 19:11   ` Thomas Gleixner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E56B8A5.6080306@gmx.de \
    --to=chk.dax@gmx.de \
    --cc=linux-rt-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox