lkml.org 
[lkml]   [2009]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2] sched: INIT_PREEMPT_COUNT
From
Date
On Fri, 10 Jul 2009 17:51:06 +0200, Peter Zijlstra said:

> Something along the lines of the below?
>
> ---
> Index: linux-2.6/include/linux/sched.h
> ===================================================================
> --- linux-2.6.orig/include/linux/sched.h
> +++ linux-2.6/include/linux/sched.h
> @@ -502,7 +502,9 @@ struct task_cputime {
>
> /*
> * Disable preemption until the scheduler is running.
> - * Reset by start_kernel()->sched_init()->init_idle().
> + *
> + * We reset this initial offset of init_thread_info.preempt_count in:
> + * start_kernel()->sched_init()->init_idle().
> */
> #define INIT_PREEMPT_COUNT (1)

Works for me, thanks...
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2009-07-10 22:27    [W:0.060 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site