summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4v/cpu/niagara.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sun4v/cpu/niagara.c')
-rw-r--r--usr/src/uts/sun4v/cpu/niagara.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/src/uts/sun4v/cpu/niagara.c b/usr/src/uts/sun4v/cpu/niagara.c
index 862215d3c5..3c697b5815 100644
--- a/usr/src/uts/sun4v/cpu/niagara.c
+++ b/usr/src/uts/sun4v/cpu/niagara.c
@@ -238,6 +238,15 @@ cpu_init_private(struct cpu *cp)
{
extern int niagara_kstat_init(void);
+ /*
+ * This code change assumes that the virtual cpu ids are identical
+ * to the physical cpu ids which is true for ontario but not for
+ * niagara in general.
+ * This is a temporary fix which will later be modified to obtain
+ * the execution unit sharing information from MD table.
+ */
+ cp->cpu_m.cpu_ipipe = (id_t)(cp->cpu_id / 4);
+
ASSERT(MUTEX_HELD(&cpu_lock));
if (niagara_cpucnt++ == 0) {
(void) niagara_kstat_init();