kernels/linux-2.4.0/arch/ppc/kernel/oak_setup.c
/*
 * int oak_setup_residual()
 *
 * Description:
 *   This routine pretty-prints the platform's internal CPU and bus clock
 *   frequencies into the buffer for usage in /proc/cpuinfo.
 *
 * Input(s):
 *  *buffer - Buffer into which CPU and bus clock frequencies are to be
 *            printed.
 *
 * Output(s):
 *  *buffer - Buffer with the CPU and bus clock frequencies.
 *
 * Returns:
 *   The number of bytes copied into 'buffer' if OK, otherwise zero or less
 *   on error.
 */
int oak_setup_residual()
Description:
This routine pretty-prints the platform's internal CPU and bus clock
frequencies into the buffer for usage in /proc/cpuinfo.

*buffer - Buffer into which CPU and bus clock frequencies are to be
printed.

*buffer - Buffer with the CPU and bus clock frequencies.

The number of bytes copied into 'buffer' if OK, otherwise zero or less
on error.
int oak_setup_residual () Description : This routine pretty - prints the platform ' s internal CPU and bus clock frequencies into the buffer for usage in / proc / cpuinfo . * buffer - Buffer into which CPU and bus clock frequencies are to be printed . * buffer - Buffer with the CPU and bus clock frequencies . The number of bytes copied into ' buffer ' if OK otherwise zero or less on error .
int
oak_setup_residual(char *buffer)
{
	int len = 0;
	bd_t *bp = (bd_t *)__res;
	len += sprintf(len + buffer,
		       "clock\t\t: %dMHz\n"
		       "bus clock\t\t: %dMHz\n",
		       bp->bi_intfreq / 1000000,
		       bp->bi_busfreq / 1000000);
	return (len);
}
int oak_setup_residual ( char * buffer ) { int len = 0 ; bd_t * bp = ( bd_t * ) __res ; len += sprintf ( len + buffer , " \t \t \n " " \t \t \n " , bp -> bi_intfreq / 1000000 , bp -> bi_busfreq / 1000000 ) ; return ( len ) ; }
int oak_setup_residual()
 Description:
   This routine pretty-prints the platform's internal CPU and bus clock
   frequencies into the buffer for usage in /proc/cpuinfo.
int oak_setup_residual () Description : This routine pretty - prints the platform ' s internal CPU and bus clock frequencies into the buffer for usage in / proc / cpuinfo .