• John Stultz's avatar
    [PATCH] linux-2.5.57_delay-cleanup_A1.patch · 8c777fd8
    John Stultz authored
    This cleans up the delay code by moving the timer-specific
    implementations into the timer_ops struct.  Thus, rather then doing:
    
    	if(x86_delay_tsc)
    		__rdtsc_delay(loops);
    	else if(x86_delay_cyclone)
    		__cyclone_delay(loops);
    	else if(whatever....
    
    we just simply do:
    
    	timer->delay(loops);
    
    Making it much easier to accommodate alternate time sources.
    8c777fd8
timer.h 657 Bytes