kernels/linux-2.4.0/include/asm-alpha/page.h
/*
 * A _lot_ of the kernel time is spent clearing pages, so
 * do this as fast as we possibly can. Also, doing this
 * as a separate inline function (rather than memset())
 * results in clearer kernel profiles as we see _who_ is
 * doing page clearing or copying.
 */
A _lot_ of the kernel time is spent clearing pages, so
do this as fast as we possibly can. Also, doing this
as a separate inline function (rather than memset())
results in clearer kernel profiles as we see _who_ is
doing page clearing or copying.
A _lot_ of the kernel time is spent clearing pages so do this as fast as we possibly can . Also doing this as a separate inline function ( rather than memset () ) results in clearer kernel profiles as we see _who_ is doing page clearing or copying .
static inline void clear_page(void * page)
{
	unsigned long count = PAGE_SIZE/64;
	unsigned long *ptr = (unsigned long *)page;
	do {
		ptr[0] = 0;
		ptr[1] = 0;
		ptr[2] = 0;
		ptr[3] = 0;
		count--;
		ptr[4] = 0;
		ptr[5] = 0;
		ptr[6] = 0;
		ptr[7] = 0;
		ptr += 8;
	} while (count);
}
static inline void clear_page ( void * page ) { unsigned long count = PAGE_SIZE / 64 ; unsigned long * ptr = ( unsigned long * ) page ; do { ptr [ 0 ] = 0 ; ptr [ 1 ] = 0 ; ptr [ 2 ] = 0 ; ptr [ 3 ] = 0 ; count -- ; ptr [ 4 ] = 0 ; ptr [ 5 ] = 0 ; ptr [ 6 ] = 0 ; ptr [ 7 ] = 0 ; ptr += 8 ; } while ( count ) ; }
A _lot_ of the kernel time is spent clearing pages, so
 do this as fast as we possibly can.
A _lot_ of the kernel time is spent clearing pages so do this as fast as we possibly can .