diff options
author | jeff <jeff@FreeBSD.org> | 2009-04-29 03:15:43 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2009-04-29 03:15:43 +0000 |
commit | 88a1cd92bb65d5fea64da9d6da5694c7446c16ac (patch) | |
tree | ae684d49b5d16e6549c119db6fcd2aff0dd71814 /sys/kern/subr_smp.c | |
parent | 1507f5bd4dc89d7b55b8e3f74a4048583619a504 (diff) | |
download | FreeBSD-src-88a1cd92bb65d5fea64da9d6da5694c7446c16ac.zip FreeBSD-src-88a1cd92bb65d5fea64da9d6da5694c7446c16ac.tar.gz |
- Remove the bogus idle thread state code. This may have a race in it
and it only optimized out an ipi or mwait in very few cases.
- Skip the adaptive idle code when running on SMT or HTT cores. This
just wastes cpu time that could be used on a busy thread on the same
core.
- Rename CG_FLAG_THREAD to CG_FLAG_SMT to be more descriptive. Re-use
CG_FLAG_THREAD to mean SMT or HTT.
Sponsored by: Nokia
Diffstat (limited to 'sys/kern/subr_smp.c')
-rw-r--r-- | sys/kern/subr_smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 1a3a6fa..d64e806 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -491,7 +491,7 @@ smp_topo(void) case 7: /* quad core with a shared l3, 8 threads sharing L2. */ top = smp_topo_2level(CG_SHARE_L3, 4, CG_SHARE_L2, 8, - CG_FLAG_THREAD); + CG_FLAG_SMT); break; default: /* Default, ask the system what it wants. */ |