From: Raghava Raju <vraghava_raju@yahoo.com>
To: arjanv@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: delegating to a cpu
Date: Mon, 30 Jun 2003 13:09:49 -0700 (PDT) [thread overview]
Message-ID: <20030630200949.96698.qmail@web20003.mail.yahoo.com> (raw)
In-Reply-To: <1056901638.1720.3.camel@laptop.fenrus.com>
Arjan,
Driver is in development stage, so I have given u an
overview of how my interrupt handler looks like.
As u can see below, I am doing some minimal processing
in ISR and scheduling a tasklet for reamining
work(like allocating buffers and cleanup).
But problem with this is that tasklet ends up on same
cpu. I want some method where by I can make use of
second cpu, so that second cpu does the work what
tasklet is doing(i.e allocating buffers and clean up).
Please don't give a solution based on irq affinity to
second cpu, as we have only one interrupt.
void my_isr(int irq, void *dev_id, struct pt_regs
*regs)
{
/*Mask interrupts on the device */
write(register, nomore interrupts);
/*do some minimal amount of processing to
read data provided by the device*/
do_basic_read(dev_id);
/*schedule tasklet and give it remaining work.*/
tasklet_schedule();
/*Unmask interrupts on device*/
write(register, start generating interrupts);
}
Regards
Raghava.
--- Arjan van de Ven <arjanv@redhat.com> wrote:
> On Sun, 2003-06-29 at 17:34, Raghava Raju wrote:
> > Hi,
> >
> > Currently interrupt handler in our driver uses
> > tasklet to process some of less important info
> > to save some interrupt time. But problem is that
> > tasklet ends up in the same cpu, and second cpu
> > is not taking much of the work.
> > 1) Is there any mechanism to delegate the less
> > important work to other cpu an example would
> really
> > help.
>
> you don't give a lot of information about what you
> are trying to do...
> could you post an URL to your driver source, that's
> the easiest way to
> give this information...
>
> ATTACHMENT part 2 application/pgp-signature
name=signature.asc
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
next prev parent reply other threads:[~2003-06-30 19:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-29 15:34 Raghava Raju
2003-06-29 15:47 ` Arjan van de Ven
2003-06-30 20:09 ` Raghava Raju [this message]
2003-06-30 20:55 ` Alan Cox
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=20030630200949.96698.qmail@web20003.mail.yahoo.com \
--to=vraghava_raju@yahoo.com \
--cc=arjanv@redhat.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®