Skip to contentSkip to conversation

event priority

DISCUSSION Tian, Kevin 2 participants 2 messages Apr 10, 2006

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines

From: Tian,Kevin
Sent: 2006年4月10日 22:31

Hi, Keir,
Seems current event priority is simple by
earlier-alloc-higher-priority style, because event ports are allocated incrementally from 1 and event dispatcher uses bit search instruction to walk pending events sequentially. Is there any plan (or benefit) to add more flexible priority policy, since by current way the priority is decided completely by compilation sequence of different drivers?

Sorry, I should say driver init sequence here. :-)

Thanks,
Kevin

#1 lore raw
Quoted 8 lines · Kevin
Quoted 6 lines

Seems current event priority is simple by
earlier-alloc-higher-priority style, because event ports are allocated incrementally from 1 and event dispatcher uses bit search instruction to walk pending events sequentially. Is there any plan (or benefit) to add more flexible priority policy, since by current way the priority is decided completely by compilation sequence of different drivers?

Sorry, I should say driver init sequence here. :-)

If hardirq 'scheduling' is demonstrated to be an issue then we can certainly work on this. There are various possible solutions -- the easiest being to simply round-robin scan the event_pending array.

-- Keir