From owner-cvs-all@FreeBSD.ORG Fri Oct 17 10:01:13 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D31B016A4C2 for ; Fri, 17 Oct 2003 10:01:13 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 71A3A43FDD for ; Fri, 17 Oct 2003 10:01:11 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 41099 invoked by uid 1000); 17 Oct 2003 17:01:12 -0000 Date: Fri, 17 Oct 2003 10:01:12 -0700 (PDT) From: Nate Lawson To: Marcel Moolenaar In-Reply-To: <20031017022536.7CD8516A57A@hub.freebsd.org> Message-ID: <20031017095829.Q41079@root.org> References: <20031017022536.7CD8516A57A@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/ia64/ia64 machdep.c src/sys/kern kern_idle.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 17:01:14 -0000 X-List-Received-Date: Fri, 17 Oct 2003 17:01:14 -0000 On Thu, 16 Oct 2003, Marcel Moolenaar wrote: > FreeBSD src repository > > Modified files: > sys/ia64/ia64 machdep.c > sys/kern kern_idle.c > Log: > Implement cpu_idle() on ia64. We put the processor in a lightweight > halt state that minimizes power consumption while still preserving > cache and TLB coherency. Halting the processor is not conditional at > this time. Tested with UP and SMP kernels. Thank you! > +void > +cpu_idle() > +{ > + struct ia64_pal_result res; > + > + res = ia64_call_pal_static(PAL_HALT_LIGHT, 0, 0, 0); > } > > void Is this the preferred way to do this? If I call asm("sti; hlt") on ia64, will that work? What about on amd64? Thanks, Nate