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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/sys/apic_common.h
          +++ new/usr/src/uts/i86pc/sys/apic_common.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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   * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   */
       24 +/*
       25 + * Copyright (c) 2013, Joyent, Inc.  All rights reserved.
       26 + */
  24   27  
  25   28  #ifndef _SYS_APIC_COMMON_H
  26   29  #define _SYS_APIC_COMMON_H
  27   30  
  28   31  #include <sys/psm_types.h>
  29   32  #include <sys/avintr.h>
  30   33  #include <sys/privregs.h>
  31   34  #include <sys/pci.h>
       35 +#include <sys/cyclic.h>
  32   36  
  33   37  #ifdef  __cplusplus
  34   38  extern "C" {
  35   39  #endif
  36   40  
  37   41  /*
  38   42   * Functions & Variables common to pcplusmp & apix
  39   43   */
  40   44  
  41   45  #include <sys/psm_common.h>
↓ open down ↓ 110 lines elided ↑ open up ↑
 152  156  extern uint32_t apic_divide_reg_init;   /* 0 - divide by 2 */
 153  157  
 154  158  extern apic_intrmap_ops_t *apic_vt_ops;
 155  159  
 156  160  #ifdef  DEBUG
 157  161  extern int      apic_break_on_cpu;
 158  162  extern int      apic_stretch_interrupts;
 159  163  extern int      apic_stretch_ISR;       /* IPL of 3 matches nothing now */
 160  164  #endif
 161  165  
 162      -extern ddi_periodic_t apic_periodic_id;
      166 +extern cyclic_id_t apic_cyclic_id;
 163  167  
 164  168  extern void apic_nmi_intr(caddr_t arg, struct regs *rp);
 165  169  extern int      apic_clkinit();
 166  170  extern hrtime_t apic_gettime();
 167  171  extern hrtime_t apic_gethrtime();
 168  172  extern int      apic_cpu_start(processorid_t cpuid, caddr_t ctx);
 169  173  extern int      apic_cpu_stop(processorid_t cpuid, caddr_t ctx);
 170  174  extern int      apic_cpu_add(psm_cpu_request_t *reqp);
 171  175  extern int      apic_cpu_remove(psm_cpu_request_t *reqp);
 172  176  extern int      apic_cpu_ops(psm_cpu_request_t *reqp);
↓ open down ↓ 28 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX