mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* delegating to a cpu
@ 2003-06-29 15:34 Raghava Raju
  2003-06-29 15:47 ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: Raghava Raju @ 2003-06-29 15:34 UTC (permalink / raw)
  To: linux-kernel



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.
2) We dont have multiple interrupts, so please 
dont give irq affinity solution!!
3) Our kernel version is 2.4.19.

I am not subscribed to this list, so please 
mail back at vraghava_raju@yahoo.com.

Raju.

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: delegating to a cpu
  2003-06-29 15:34 delegating to a cpu Raghava Raju
@ 2003-06-29 15:47 ` Arjan van de Ven
  2003-06-30 20:09   ` Raghava Raju
  0 siblings, 1 reply; 4+ messages in thread
From: Arjan van de Ven @ 2003-06-29 15:47 UTC (permalink / raw)
  To: Raghava Raju; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 590 bytes --]

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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: delegating to a cpu
  2003-06-29 15:47 ` Arjan van de Ven
@ 2003-06-30 20:09   ` Raghava Raju
  2003-06-30 20:55     ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Raghava Raju @ 2003-06-30 20:09 UTC (permalink / raw)
  To: arjanv; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: delegating to a cpu
  2003-06-30 20:09   ` Raghava Raju
@ 2003-06-30 20:55     ` Alan Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Cox @ 2003-06-30 20:55 UTC (permalink / raw)
  To: Raghava Raju; +Cc: arjanv, Linux Kernel Mailing List


Unless your other work is really expensive its doubtful another CPU will
help you. If it is then probably you want to have threads that you pin
to each CPU (with the cpu affinity calls) and wake. You do want to work 
hard to keep the same data being needed on both CPUs however


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-30 20:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-29 15:34 delegating to a cpu Raghava Raju
2003-06-29 15:47 ` Arjan van de Ven
2003-06-30 20:09   ` Raghava Raju
2003-06-30 20:55     ` Alan Cox

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®