/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* FILE NOTICE BEGIN
*
* This file should not be modified. If you wish to modify it or have it
* modified, please contact Sun Microsystems at <LFI149367@-sun-.-com->
* (without anti-spam dashes)
*
* FILE NOTICE END
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
/*
* Create and initialize an interrupt thread.
*/
static void
{
/*
* Set the thread in the TS_FREE state. The state will change
* to TS_ONPROC only while the interrupt is active. Think of these
* as being on a private free list for the CPU. Being TS_FREE keeps
* inactive interrupt threads out of debugger thread lists.
*
* We cannot call thread_create with TS_FREE because of the current
* checks there for ONPROC. Fix this when thread_create takes flags.
*/
/*
* Nobody should ever reference the credentials of an interrupt
* thread so make it NULL to catch any such references.
*/
/*
* Don't make a user-requested binding on this thread so that
* the processor can be offlined.
*/
#endif
/*
* Link onto CPU's interrupt pool.
*/
}
/*
* Allocate a given number of interrupt threads for a given CPU.
* These threads will get freed by cpu_destroy_bound_threads()
* when CPU gets unconfigured.
*/
void
{
int i;
for (i = 0; i < n; i++)
}