Commit 100531e9 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: export timebase frequency in /proc/cpuinfo

parent 670475f7
......@@ -108,12 +108,16 @@ extern int rd_prompt; /* 1 = prompt for ramdisk, 0 = don't prompt */
extern int rd_image_start; /* starting block # of image */
#endif
extern unsigned long ppc_tb_freq;
void
chrp_get_cpuinfo(struct seq_file *m)
{
struct device_node *root;
const char *model = "";
seq_printf(m, "timebase\t: %lu\n", ppc_tb_freq);
root = find_path_device("/");
if (root)
model = get_property(root, "model", NULL);
......
......@@ -337,7 +337,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
if (ppc_md.setup_residual != NULL)
ppc_md.setup_residual(m, cpu_id);
seq_printf(m, "revision\t: %hd.%hd\n", maj, min);
seq_printf(m, "revision\t: %hd.%hd\n\n", maj, min);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment