/* Get CPU information for use by the procfs.  */
static int show_cpuinfo(struct seq_file *m, void *v)
/* Get CPU information for use by the procfs.  */
static int show_cpuinfo(struct seq_file *m, void *v)
{
    char *cpu;
    int mode;
    u_long clockfreq;
    cpu = CPU;
    mode = *(volatile unsigned char *)MDCR & 0x07;
    clockfreq = CONFIG_CPU_CLOCK;
    seq_printf(m,  "CPU:\t\t%s (mode:%d)\n"
		   "Clock:\t\t%lu.%1luMHz\n"
		   "BogoMips:\t%lu.%02lu\n"
		   "Calibration:\t%lu loops\n",
	           cpu,mode,
		   clockfreq/1000,clockfreq%1000,
		   (loops_per_jiffy*HZ)/500000,((loops_per_jiffy*HZ)/5000)%100,
		   (loops_per_jiffy*HZ));
    return 0;
}