Re: [PATCH-RT] Fix for sleeping function called from invalid context when running gdb

From: Andi Kleen
Date: Fri Dec 02 2011 - 13:20:12 EST


> > -static inline void preempt_conditional_sti(struct pt_regs *regs)
> > +static inline void preempt_conditional_sti(struct pt_regs *regs, int stack)
> > {
> > - inc_preempt_count();
> > + if (stack)
> > + inc_preempt_count();

All callers now pass in true I think, so you could eliminate the stack argument.

-Andi

> > if (regs->flags & X86_EFLAGS_IF)
> > local_irq_enable();
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/