From 681fceaa868d4bf5fa8ace4888020016d1f4cee6 Mon Sep 17 00:00:00 2001 From: Manuel Lauss Date: Thu, 27 Aug 2009 19:21:18 +0200 Subject: [PATCH] --- yaml --- r: 162852 b: refs/heads/master c: a7bcb1ae6094db78b077ae17e92c69de7643014f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/mips/alchemy/common/setup.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 025c7e206f7e..8618e209bcce 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f7557dc8215a2e7eb22da583d03e1aef72c58b3c +refs/heads/master: a7bcb1ae6094db78b077ae17e92c69de7643014f diff --git a/trunk/arch/mips/alchemy/common/setup.c b/trunk/arch/mips/alchemy/common/setup.c index 3f036b3d400e..6184baa56786 100644 --- a/trunk/arch/mips/alchemy/common/setup.c +++ b/trunk/arch/mips/alchemy/common/setup.c @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -53,6 +54,9 @@ void __init plat_mem_setup(void) printk(KERN_INFO "(PRId %08x) @ %lu.%02lu MHz\n", read_c0_prid(), est_freq / 1000000, ((est_freq % 1000000) * 100) / 1000000); + /* this is faster than wasting cycles trying to approximate it */ + preset_lpj = (est_freq >> 1) / HZ; + _machine_restart = au1000_restart; _machine_halt = au1000_halt; pm_power_off = au1000_power_off;