Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932221AbYCUXLx (ORCPT ); Fri, 21 Mar 2008 19:11:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932168AbYCUWw0 (ORCPT ); Fri, 21 Mar 2008 18:52:26 -0400 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:41326 "EHLO sous-sol.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932193AbYCUWwY (ORCPT ); Fri, 21 Mar 2008 18:52:24 -0400 Message-Id: <20080321224425.641454874@sous-sol.org> References: <20080321224250.144333319@sous-sol.org> User-Agent: quilt/0.46-1 Date: Fri, 21 Mar 2008 15:43:39 -0700 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Hiroshi Shimamoto , Ingo Molnar , Thomas Gleixner , Ed Tomlinson , Greg Kroah-Hartman Subject: [patch 49/76] x86: move out tick_nohz_stop_sched_tick() call from the loop Content-Disposition: inline; filename=x86-move-out-tick_nohz_stop_sched_tick-call-from-the-loop.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1375 Lines: 45 -stable review patch. If anyone has any objections, please let us know. --------------------- From: Hiroshi Shimamoto [upstream commit: 3d97775a] Move out tick_nohz_stop_sched_tick() call from the loop in cpu_idle same as 32-bit version. Signed-off-by: Hiroshi Shimamoto Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner Cc: Ed Tomlinson Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/process_64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -212,14 +212,13 @@ void cpu_idle (void) current_thread_info()->status |= TS_POLLING; /* endless idle loop with no priority at all */ while (1) { + tick_nohz_stop_sched_tick(); while (!need_resched()) { void (*idle)(void); if (__get_cpu_var(cpu_idle_state)) __get_cpu_var(cpu_idle_state) = 0; - tick_nohz_stop_sched_tick(); - rmb(); idle = pm_idle; if (!idle) -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/