summaryrefslogtreecommitdiff
path: root/net/mac802154
diff options
context:
space:
mode:
authorThomas Pfaff <tpfaff@pcs.com>2013-10-11 11:00:40 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-04 19:05:09 (GMT)
commit74c30973e25e48bccb6b9c9a5e75d289e83e5f2a (patch)
tree9f38464816dd539f274c05c7c24d42b6f684741b /net/mac802154
parentda007325dea72ba19e7567cbd14e45ff68f1fbef (diff)
downloadlinux-fsl-qoriq-74c30973e25e48bccb6b9c9a5e75d289e83e5f2a.tar.xz
genirq: Set the irq thread policy without checking CAP_SYS_NICE
commit bbfe65c219c638e19f1da5adab1005b2d68ca810 upstream. 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> 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/mac802154')
0 files changed, 0 insertions, 0 deletions