Date: Fri, 17 Oct 2003 10:01:12 -0700 (PDT) From: Nate Lawson <nate@root.org> To: Marcel Moolenaar <marcel@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/ia64/ia64 machdep.c src/sys/kern kern_idle.c Message-ID: <20031017095829.Q41079@root.org> In-Reply-To: <20031017022536.7CD8516A57A@hub.freebsd.org> References: <20031017022536.7CD8516A57A@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031017095829.Q41079>