Print this page
OS-2366 ddi_periodic_add(9F) is entirely rubbish

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/io/pcplusmp/apic_common.c
          +++ new/usr/src/uts/i86pc/io/pcplusmp/apic_common.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
       25 +/*
       26 + * Copyright (c) 2013, Joyent, Inc.  All rights reserved.
       27 + */
  25   28  
  26   29  /*
  27   30   * PSMI 1.1 extensions are supported only in 2.6 and later versions.
  28   31   * PSMI 1.2 extensions are supported only in 2.7 and later versions.
  29   32   * PSMI 1.3 and 1.4 extensions are supported in Solaris 10.
  30   33   * PSMI 1.5 extensions are supported in Solaris Nevada.
  31   34   * PSMI 1.6 extensions are supported in Solaris Nevada.
  32   35   * PSMI 1.7 extensions are supported in Solaris Nevada.
  33   36   */
  34   37  #define PSMI_1_7
↓ open down ↓ 1309 lines elided ↑ open up ↑
1344 1347           * Wait a limited time here for power to go off.
1345 1348           * If the power does not go off, then there was a
1346 1349           * problem and we should continue to the halt which
1347 1350           * prints a message for the user to press a key to
1348 1351           * reboot.
1349 1352           */
1350 1353          drv_usecwait(7000000); /* wait seven seconds */
1351 1354  
1352 1355  }
1353 1356  
1354      -ddi_periodic_t apic_periodic_id;
     1357 +cyclic_id_t apic_cyclic_id;
1355 1358  
1356 1359  /*
1357 1360   * The following functions are in the platform specific file so that they
1358 1361   * can be different functions depending on whether we are running on
1359 1362   * bare metal or a hypervisor.
1360 1363   */
1361 1364  
1362 1365  /*
1363 1366   * map an apic for memory-mapped access
1364 1367   */
↓ open down ↓ 361 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX