MFi386: sys/i386/i386/machdep.c rev. 1.520.
This commit is contained in:
parent
42676968c6
commit
79804ff975
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98808
@ -800,7 +800,11 @@ cpu_halt(void)
|
||||
* the !SMP case, as there is no clean way to ensure that a CPU will be
|
||||
* woken when there is work available for it.
|
||||
*/
|
||||
#ifdef SMP
|
||||
static int cpu_idle_hlt = 0;
|
||||
#else
|
||||
static int cpu_idle_hlt = 1;
|
||||
#endif
|
||||
SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW,
|
||||
&cpu_idle_hlt, 0, "Idle loop HLT enable");
|
||||
|
||||
@ -813,7 +817,6 @@ SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW,
|
||||
void
|
||||
cpu_idle(void)
|
||||
{
|
||||
#ifndef SMP
|
||||
if (cpu_idle_hlt) {
|
||||
disable_intr();
|
||||
if (procrunnable()) {
|
||||
@ -827,7 +830,6 @@ cpu_idle(void)
|
||||
__asm __volatile("sti; hlt");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -800,7 +800,11 @@ cpu_halt(void)
|
||||
* the !SMP case, as there is no clean way to ensure that a CPU will be
|
||||
* woken when there is work available for it.
|
||||
*/
|
||||
#ifdef SMP
|
||||
static int cpu_idle_hlt = 0;
|
||||
#else
|
||||
static int cpu_idle_hlt = 1;
|
||||
#endif
|
||||
SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW,
|
||||
&cpu_idle_hlt, 0, "Idle loop HLT enable");
|
||||
|
||||
@ -813,7 +817,6 @@ SYSCTL_INT(_machdep, OID_AUTO, cpu_idle_hlt, CTLFLAG_RW,
|
||||
void
|
||||
cpu_idle(void)
|
||||
{
|
||||
#ifndef SMP
|
||||
if (cpu_idle_hlt) {
|
||||
disable_intr();
|
||||
if (procrunnable()) {
|
||||
@ -827,7 +830,6 @@ cpu_idle(void)
|
||||
__asm __volatile("sti; hlt");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user