cvs commit: src/sys/ia64/ia64 machdep.c src/sys/kern kern_idle.c

Nate Lawson nate at root.org
Fri Oct 17 10:01:13 PDT 2003


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


More information about the cvs-src mailing list