summaryrefslogtreecommitdiffstats
path: root/sys/sys/smp.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2009-04-29 03:15:43 +0000
committerjeff <jeff@FreeBSD.org>2009-04-29 03:15:43 +0000
commit88a1cd92bb65d5fea64da9d6da5694c7446c16ac (patch)
treeae684d49b5d16e6549c119db6fcd2aff0dd71814 /sys/sys/smp.h
parent1507f5bd4dc89d7b55b8e3f74a4048583619a504 (diff)
downloadFreeBSD-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/sys/smp.h')
-rw-r--r--sys/sys/smp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/smp.h b/sys/sys/smp.h
index 500516f..05c8642 100644
--- a/sys/sys/smp.h
+++ b/sys/sys/smp.h
@@ -54,7 +54,8 @@ struct cpu_group {
* Behavior modifiers for load balancing and affinity.
*/
#define CG_FLAG_HTT 0x01 /* Schedule the alternate core last. */
-#define CG_FLAG_THREAD 0x02 /* New age htt, less crippled. */
+#define CG_FLAG_SMT 0x02 /* New age htt, less crippled. */
+#define CG_FLAG_THREAD (CG_FLAG_HTT | CG_FLAG_SMT) /* Any threading. */
/*
* Convenience routines for building topologies.
OpenPOWER on IntegriCloud