2850d85b7b93f31e578520dc3b3feb24db609c62mv * CDDL HEADER START
2850d85b7b93f31e578520dc3b3feb24db609c62mv * The contents of this file are subject to the terms of the
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Common Development and Distribution License (the "License").
2850d85b7b93f31e578520dc3b3feb24db609c62mv * You may not use this file except in compliance with the License.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2850d85b7b93f31e578520dc3b3feb24db609c62mv * See the License for the specific language governing permissions
2850d85b7b93f31e578520dc3b3feb24db609c62mv * and limitations under the License.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * When distributing Covered Code, include this CDDL HEADER in each
2850d85b7b93f31e578520dc3b3feb24db609c62mv * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * If applicable, add the following below this CDDL HEADER, with the
2850d85b7b93f31e578520dc3b3feb24db609c62mv * fields enclosed by brackets "[]" replaced with your own identifying
2850d85b7b93f31e578520dc3b3feb24db609c62mv * information: Portions Copyright [yyyy] [name of copyright owner]
2850d85b7b93f31e578520dc3b3feb24db609c62mv * CDDL HEADER END
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Use is subject to license terms.
2850d85b7b93f31e578520dc3b3feb24db609c62mv#pragma ident "%Z%%M% %I% %E% SMI"
2850d85b7b93f31e578520dc3b3feb24db609c62mvextern "C" {
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Per-CPU structure to facilitate multi-threaded tick accounting.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Mutex for the structure. Used to lock the structure to pass
2850d85b7b93f31e578520dc3b3feb24db609c62mv * arguments to the tick processing softint handler.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Tick processing softint handle. For parallelism, each CPU
2850d85b7b93f31e578520dc3b3feb24db609c62mv * needs to have its own softint handle.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * ct_lbolt
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Copy of the lbolt at the time of tick scheduling.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * ct_pending
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Number of ticks to be processed by one invocation of the tick
2850d85b7b93f31e578520dc3b3feb24db609c62mv * processing softint.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * ct_start
2850d85b7b93f31e578520dc3b3feb24db609c62mv * First CPU to do tick processing for.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Last CPU to do tick processing for.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * CPU to start the tick processing from. Rotated every tick.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Per-set structure to facilitate multi-threaded tick accounting.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * clock_tick_lock protects this.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * ct_start
2850d85b7b93f31e578520dc3b3feb24db609c62mv * First CPU to do tick processing for.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * Last CPU to do tick processing for.
2850d85b7b93f31e578520dc3b3feb24db609c62mv * CPU to start the tick processing from. Rotated every tick.
2850d85b7b93f31e578520dc3b3feb24db609c62mvextern ulong_t create_softint(uint_t, uint_t (*)(caddr_t, caddr_t),
2850d85b7b93f31e578520dc3b3feb24db609c62mvextern void membar_sync(void);
2850d85b7b93f31e578520dc3b3feb24db609c62mv#endif /* _KERNEL */
2850d85b7b93f31e578520dc3b3feb24db609c62mv#endif /* _SYS_CLOCK_TICK_H */