Re: [PATCH] sched: fix the wrong macro name of CONFIG_DEBUG_PREEMPT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thomas, 

Can you pick up this patch for 3.8-rt? I'll add it to stable after you
have done so.

Thanks,

-- Steve

On Mon, 2013-04-08 at 19:47 +0800, Qiang Huang wrote:
> Might be a typo, would cause some debug code never be run.
> 
> Signed-off-by: Qiang Huang <h.huangqiang@xxxxxxxxxx>
> ---
>  kernel/sched/core.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index 30126e2..7b50412 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -3405,7 +3405,7 @@ static noinline void __schedule_bug(struct task_struct *prev)
>  	print_modules();
>  	if (irqs_disabled())
>  		print_irqtrace_events(prev);
> -#ifdef DEBUG_PREEMPT
> +#ifdef CONFIG_DEBUG_PREEMPT
>  	if (in_atomic_preempt_off()) {
>  		pr_err("Preemption disabled at:");
>  		print_ip_sym(current->preempt_disable_ip);
> @@ -7802,7 +7802,7 @@ void __might_sleep(const char *file, int line, int preempt_offset)
>  	debug_show_held_locks(current);
>  	if (irqs_disabled())
>  		print_irqtrace_events(current);
> -#ifdef DEBUG_PREEMPT
> +#ifdef CONFIG_DEBUG_PREEMPT
>  	if (!preempt_count_equals(preempt_offset)) {
>  		pr_err("Preemption disabled at:");
>  		print_ip_sym(current->preempt_disable_ip);


--
To unsubscribe from this list: send the line "unsubscribe stable-rt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Development]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux