Re: Interrupt routine accessing i2c bus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- Shakthi Kannan <shakthimaan@xxxxxxxxx> wrote:

> Hi John,
> 
> On 10/5/06, john bogus <bogusemail98230@xxxxxxxxx>
> wrote:
> > Both ISR's and tasklets both run in
> > interrupt context so the i2c drivers need to
> accessed
> > some other way.
> 
> Which Linux kernel are you using?
2.4.20

> 
> What about task_queues running in schedular queue in
> 2.4 Linux
> kernels? They run in process context.
> 
> http://www.xml.com/ldd/chapter/book/ch06.html#t4
> 

Yes, I thought about this, but won't it have the same
kind of latency possibilities as the completion
version (tens of milliseconds)?

> > I was thinking of creating a task with
> > wait_for_completion(&xxx) and having the ISR do a
> > complete(&xxx) to wake the task.
> 
> Or use kernel_thread() and sleep, and let ISR wake
> it up?  USB hub
> thread is an example:
> 
>
http://lxr.linux.no/source/drivers/usb/hub.c?v=2.4.28#L903

this looks like it has possibilities... thanks
> 
> SK
> 
> -- 
> Shakthi Kannan
> http://www.shakthimaan.com
> 
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:      
> http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux