new_xsec = (u64)new_nsec * XSEC_PER_SEC; do_div(new_xsec, NSEC_PER_SEC); new_xsec += (u64)new_sec * XSEC_PER_SEC; 
new_xsec = 0; if (new_nsec != 0) { new_xsec = (u64)new_nsec * XSEC_PER_SEC; do_div(new_xsec, NSEC_PER_SEC); } new_xsec += (u64)new_sec * XSEC_PER_SEC - tb_delta_xs; 
int do_settimeofday(struct timespec *tv){	time_t wtm_sec, new_sec = tv->tv_sec;	long wtm_nsec, new_nsec = tv->tv_nsec;	unsigned long flags;	long int tb_delta;	u64 new_xsec;	if ((unsigned long)tv->tv_nsec >= NSEC_PER_SEC)		return -EINVAL;	write_seqlock_irqsave(&xtime_lock, flags);	/*	 * Updating the RTC is not the job of this code. If the time is	 * stepped under NTP, the RTC will be updated after STA_UNSYNC	 * is cleared.  Tools like clock/hwclock either copy the RTC	 * to the system time, in which case there is no point in writing	 * to the RTC again, or write to the RTC but then they don't call	 * settimeofday to perform this operation.	 */#ifdef CONFIG_PPC_ISERIES	if (first_settimeofday) {		iSeries_tb_recal();		first_settimeofday = 0;	}#endif	tb_delta = tb_ticks_since(tb_last_stamp);	tb_delta += (jiffies - wall_jiffies) * tb_ticks_per_jiffy;	new_nsec -= 1000 * mulhwu(tb_to_us, tb_delta);	wtm_sec  = wall_to_monotonic.tv_sec + (xtime.tv_sec - new_sec);	wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - new_nsec); 	set_normalized_timespec(&xtime, new_sec, new_nsec);	set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec);	/* In case of a large backwards jump in time with NTP, we want the 	 * clock to be updated as soon as the PLL is again in lock.	 */	last_rtc_update = new_sec - 658;	ntp_clear();	new_xsec = (u64)new_nsec * XSEC_PER_SEC;	do_div(new_xsec, NSEC_PER_SEC);	new_xsec += (u64)new_sec * XSEC_PER_SEC;	update_gtod(tb_last_jiffy, new_xsec, do_gtod.varp->tb_to_xs);#ifdef CONFIG_PPC64	systemcfg->tz_minuteswest = sys_tz.tz_minuteswest;	systemcfg->tz_dsttime = sys_tz.tz_dsttime;#endif	write_sequnlock_irqrestore(&xtime_lock, flags);	clock_was_set();	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/5f6b5b973a125de0dbe236ce659a495787c81ff0/time.c/clean/arch/powerpc/kernel/time.c