diff options
author | Thomas Pfaff <tpfaff@pcs.com> | 2013-10-11 13:00:40 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2013-10-28 09:50:42 +0100 |
commit | bbfe65c219c638e19f1da5adab1005b2d68ca810 (patch) | |
tree | 785b809ad6426f779a3569887a7f7d7fe9cc705e /Documentation/devicetree | |
parent | fd2f3b7ee1cf4b5fa77659c5ed4aa3cf5d1b3731 (diff) | |
download | linux-bbfe65c219c638e19f1da5adab1005b2d68ca810.tar.bz2 |
genirq: Set the irq thread policy without checking CAP_SYS_NICE
In commit ee23871389 ("genirq: Set irq thread to RT priority on
creation") we moved the assigment of the thread's priority from the
thread's function into __setup_irq(). That function may run in user
context for instance if the user opens an UART node and then driver
calls requests in the ->open() callback. That user may not have
CAP_SYS_NICE and so the irq thread won't run with the SCHED_OTHER
policy.
This patch uses sched_setscheduler_nocheck() so we omit the CAP_SYS_NICE
check which is otherwise required for the SCHED_OTHER policy.
[bigeasy: Rewrite the changelog]
Signed-off-by: Thomas Pfaff <tpfaff@pcs.com>
Cc: Ivo Sieben <meltedpianoman@gmail.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1381489240-29626-1-git-send-email-bigeasy@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions