#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,60) /* * Don't care about any signals. */ siginitsetinv(&current->blocked, 0); 
ahd_linux_dv_thread(void *data){	struct	ahd_softc *ahd;	int	target;	u_long	s;	ahd = (struct ahd_softc *)data;#ifdef AHD_DEBUG	if (ahd_debug & AHD_SHOW_DV)		printf("In DV Thread\n");#endif	/*	 * Complete thread creation.	 */	lock_kernel();#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,60)	/*	 * Don't care about any signals.	 */	siginitsetinv(&current->blocked, 0);	daemonize();	sprintf(current->comm, "ahd_dv_%d", ahd->unit);#else	daemonize("ahd_dv_%d", ahd->unit);	current->flags |= PF_NOFREEZE;#endif	unlock_kernel();	while (1) {		/*		 * Use down_interruptible() rather than down() to		 * avoid inclusion in the load average.		 */		down_interruptible(&ahd->platform_data->dv_sem);		/* Check to see if we've been signaled to exit */		ahd_lock(ahd, &s);		if ((ahd->platform_data->flags & AHD_DV_SHUTDOWN) != 0) {			ahd_unlock(ahd, &s);			break;		}		ahd_unlock(ahd, &s);#ifdef AHD_DEBUG		if (ahd_debug & AHD_SHOW_DV)			printf("%s: Beginning Domain Validation\n",			       ahd_name(ahd));#endif		/*		 * Wait for any pending commands to drain before proceeding.		 */		ahd_lock(ahd, &s);		while (LIST_FIRST(&ahd->pending_scbs) != NULL) {			ahd->platform_data->flags |= AHD_DV_WAIT_SIMQ_EMPTY;			ahd_unlock(ahd, &s);			down_interruptible(&ahd->platform_data->dv_sem);			ahd_lock(ahd, &s);		}		/*		 * Wait for the SIMQ to be released so that DV is the		 * only reason the queue is frozen.		 */		while (AHD_DV_SIMQ_FROZEN(ahd) == 0) {			ahd->platform_data->flags |= AHD_DV_WAIT_SIMQ_RELEASE;			ahd_unlock(ahd, &s);			down_interruptible(&ahd->platform_data->dv_sem);			ahd_lock(ahd, &s);		}		ahd_unlock(ahd, &s);		for (target = 0; target < AHD_NUM_TARGETS; target++)			ahd_linux_dv_target(ahd, target);		ahd_lock(ahd, &s);		ahd->platform_data->flags &= ~AHD_DV_ACTIVE;		ahd_unlock(ahd, &s);		/*		 * Release the SIMQ so that normal commands are		 * allowed to continue on the bus.		 */		ahd_release_simq(ahd);	}	up(&ahd->platform_data->eh_sem);	return (0);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/60a13213840296b1e32d6781653a0eaa83d04382/aic79xx_osm.c/clean/drivers/scsi/aic7xxx/aic79xx_osm.c