中断线程默认优先级也挺高的
MAX_USER_RT_PRIO/2
#define MAX_USER_RT_PRIO 100
static int setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary)
{ struct task_struct *t;
struct sched_param param = { .sched_priority = MAX_USER_RT_PRIO/2, };
if (!secondary) {
t = kthread_create(irq_thread, new, "irq/%d-%s", irq, new->name);
} else {
t = kthread_create(irq_thread, new, "irq/%d-s-%s", irq, new->name); param.sched_priority -= 1;
} if (IS_ERR(t)) return PTR_ERR(t);
sched_setscheduler_nocheck(t, SCHED_FIFO, ¶m);