lkml.org 
[lkml]   [2013]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 22/44] metag: Time keeping
On 04/01/13 12:48, Vineet Gupta wrote:
> Another question if you don't mind. In our setup we have a UART (non-standard ARC
> specific) which is wired up to the boot CPU (only). Now if the init/rcS happens to
> run on non-boot CPU, the setup/request_irq( ) and hence consequential low level
> cpu irq unmasking will only happen on *that* cpu. Now if user were to type a
> key-stroke, the interrupt will be asserted on boot-cpu, which has interrupt
> masked. How is this handled.

I'm guessing the best way would be to set the affinity of the irq from
the serial driver, and implement the irq_set_affinity callback for the
relevant irq_chip to do the necessary work, but others may have better
ideas.

Meta has something similar for output via jtag debug pod, but it doesn't
use interrupts so it has to poll from an add_timer_on()'d timer and
output from a kthread_bind()'d kthread.

Cheers
James



\
 
 \ /
  Last update: 2013-01-04 15:01    [W:0.059 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site