Print this page
4664 CPU->cpu_pri_data hasn't been used for years

@@ -345,17 +345,10 @@
         apix_vector = apixs[cpu]->x_vectbl[vec];
 
         return ((uintptr_t)(apix_vector->v_autovect));
 }
 
-#if defined(__amd64)
-static unsigned char dummy_cpu_pri[MAXIPL + 1] = {
-        0, 0, 0, 0, 0, 0, 0, 0,
-        0, 0, 0, 0, 0, 0, 0, 0, 0
-};
-#endif
-
 static void
 apix_init()
 {
         extern void (*do_interrupt_common)(struct regs *, trap_trace_rec_t *);
 

@@ -368,16 +361,15 @@
         get_intr_handler = apix_get_intr_handler;
         psm_get_localapicid = apic_get_localapicid;
         psm_get_ioapicid = apic_get_ioapicid;
 
         apix_softinit();
-#if defined(__amd64)
-        CPU->cpu_pri_data = dummy_cpu_pri;
-#else
+
+#if !defined(__amd64)
         if (cpuid_have_cr8access(CPU))
                 apic_have_32bit_cr8 = 1;
-#endif  /* __amd64 */
+#endif
 
         /*
          * Initialize IRM pool parameters
          */
         if (irm_enable) {