Re: How to talk to DAQ Hardware?

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

 



On Sat, 2007-08-25 at 12:49 -0700, Calin Culianu wrote:

> Cool!  That's what I figured but I wanted to double-check.
> 
> Now, there is no way to raise the priority of particular driver's ISRs is
> there?  So that a specific ISR can preempt anything including a hard realtime
> process?

ISR's are kernel threads, and you can change the priority of them .. If
you look 'ps' or 'top' you'll notice some processes that looks like,

m0nster-mash ~ # ps alx | grep IRQ
5     0   119     2 -51   -      0     0 irqd   S<   ?          0:00 [IRQ-20]
5     0   898     2 -51   -      0     0 irqd   S<   ?          0:00 [IRQ-8]
5     0   930     2 -51   -      0     0 irqd   S<   ?          0:00 [IRQ-14]
5     0   948     2 -51   -      0     0 irqd   S<   ?          0:00 [IRQ-18]
5     0   957     2 -51   -      0     0 irqd   S<   ?          0:00 [IRQ-16]
5     0   964     2 -51   -      0     0 irqd   S<   ?          0:00 [IRQ-19]
5     0   974     2 -51   -      0     0 irqd   S<   ?          0:00 [IRQ-12]
5     0   975     2 -51   -      0     0 irqd   S<   ?          0:00 [IRQ-1]
5     0  1002     2 -51   -      0     0 irqd   S<   ?          0:00 [IRQ-4]
m0nster-mash ~ #

So you change the priority just like with any process.. Using chrt from
sched utils ..

> I know in the shared IRQ situation it would introduce lots of jitter but having
> really high priority interrupts would be nice.  Is that possible?

yeah, if they're shared then both handlers will get the same priority .

> Anyway thanks for answering my question -- this basically means I can throw
> away rtlinux and use the latest 2.6 kernels with the RT_PREEMPT patches!  :)

Yeah, hopefully it works out for you..

Daniel

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux