time_adjust = 0;		/* stop active adjtime() */ time_status |= STA_UNSYNC; time_maxerror = NTP_PHASE_LIMIT; time_esterror = NTP_PHASE_LIMIT; 
ntp_clear(); 
do_settimeofday(struct timespec *tv){	time_t wtm_sec, sec = tv->tv_sec;	long wtm_nsec, nsec = tv->tv_nsec;	unsigned long delta_nsec;	if ((unsigned long)tv->tv_nsec >= NSEC_PER_SEC)		return -EINVAL;	write_seqlock_irq(&xtime_lock);	/* The offset that is added into time in do_gettimeofday above	   must be subtracted out here to keep a coherent view of the	   time.  Without this, a full-tick error is possible.  */#ifdef CONFIG_SMP	delta_nsec = (jiffies - wall_jiffies) * (NSEC_PER_SEC / HZ);#else	delta_nsec = rpcc() - state.last_time;	delta_nsec = (delta_nsec * state.scaled_ticks_per_cycle 		      + state.partial_tick		      + ((jiffies - wall_jiffies) << FIX_SHIFT)) * 15625;	delta_nsec = ((delta_nsec / ((1UL << (FIX_SHIFT-6-1)) * HZ)) + 1) / 2;	delta_nsec *= 1000;#endif	nsec -= delta_nsec;	wtm_sec  = wall_to_monotonic.tv_sec + (xtime.tv_sec - sec);	wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec);	set_normalized_timespec(&xtime, sec, nsec);	set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec);	time_adjust = 0;		/* stop active adjtime() */	time_status |= STA_UNSYNC;	time_maxerror = NTP_PHASE_LIMIT;	time_esterror = NTP_PHASE_LIMIT;	write_sequnlock_irq(&xtime_lock);	clock_was_set();	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b149ee2233edf08fb59b11e879a2c5941929bcb8/time.c/buggy/arch/alpha/kernel/time.c