On Tue, 7 Jun 2011, Johannes Bauer wrote:
Please stop top-posting and use proper line breaks at 78
Feel free to do that for your embedded system and carry the patch forPeter Zijlstra wrote:Absolutly correct!"Monica Puig-Pey" wrote:No you don't. How does you driver know about what priority is correct
I need to change the priority from inside the driver, when creating the
kernel thread.
wrt all the other running RT tasks on the system?
Determining the right priority in a fixed priority scheduling system is
a system wide problem, nobody but the administrator can possibly even
begin to solve it.
There's a reason all RT irq threads are started at 50, its plain
impossible to do better.
However, if you are running the system on an embedded platform,
where the _WHOLE_ system (including priorities) is preconfigured and
never touched, starting a irq thread with the right prio from start
is a more straightforward method than having to invoke a script that
changes it using userspace chrt tool.
yourself if you think it's worth to avoid the extra init script.
But we do _not_ add stuff like this to the mainline simply because
there is no way to find a prio setting which is appropriate for all
users of a particular driver.
Aside of that the extra init script is definitely less annoying to
maintain than the crap you need to hack into random drivers.
Thanks,
tglx
--
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