From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valdis.Kletnieks@vt.edu Subject: Re: [PATCH 1/2] sched: INIT_PREEMPT_COUNT Date: Fri, 10 Jul 2009 16:24:13 -0400 Message-ID: <47357.1247257453@turing-police.cc.vt.edu> References: <20090710125755.559739294@chello.nl> <20090710130125.037018244@chello.nl> <17047.1247240546@turing-police.cc.vt.edu> <1247241066.7529.50.camel@twins> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1247257453_3858P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from turing-police.cc.vt.edu ([128.173.14.107]:57788 "EHLO turing-police.cc.vt.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756099AbZGJUZT (ORCPT ); Fri, 10 Jul 2009 16:25:19 -0400 In-Reply-To: Your message of "Fri, 10 Jul 2009 17:51:06 +0200." <1247241066.7529.50.camel@twins> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Linus Torvalds , Matt Mackall , Anton Vorontsov , Andrew Morton , oleg@redhat.com, mingo@elte.hu, tony.luck@intel.com, rth@twiddle.net, geert@linux-m68k.org --==_Exmh_1247257453_3858P Content-Type: text/plain; charset=us-ascii 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... --==_Exmh_1247257453_3858P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFKV6NtcC3lWbTT17ARAmvFAJ4nO7b0ABq9AyeGxd6WenWLuIf2fQCg0Fwh r0VnakKSjRIusnawKBOjLho= =NwLF -----END PGP SIGNATURE----- --==_Exmh_1247257453_3858P--