Print this page
XXXX pass in cpu_pause_func via pause_cpus

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/disp/disp.c
          +++ new/usr/src/uts/common/disp/disp.c
↓ open down ↓ 332 lines elided ↑ open up ↑
 333  333           */
 334  334          i = 0;
 335  335          cpup = cpu_list;
 336  336          do {
 337  337                  disp_dq_alloc(&disp_mem[i], numpris, cpup->cpu_disp);
 338  338                  i++;
 339  339                  cpup = cpup->cpu_next;
 340  340          } while (cpup != cpu_list);
 341  341          num = i;
 342  342  
 343      -        pause_cpus(NULL);
      343 +        pause_cpus(NULL, NULL);
 344  344          for (i = 0; i < num; i++)
 345  345                  disp_dq_assign(&disp_mem[i], numpris);
 346  346          start_cpus();
 347  347  
 348  348          /*
 349  349           * I must free all of the memory after starting the cpus because
 350  350           * I can not risk sleeping in kmem_free while the cpus are stopped.
 351  351           */
 352  352          for (i = 0; i < num; i++)
 353  353                  disp_dq_free(&disp_mem[i]);
↓ open down ↓ 2348 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX