[MIPS] Fix clocksource parameter for low frequency timers.
commitf5ab3225defa0a0759f20b687ebe8e6566af2951
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Thu, 26 Oct 2006 14:09:37 +0000 (26 23:09 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 27 Oct 2006 19:46:39 +0000 (27 20:46 +0100)
tree08d800508ddd7fde67b05af937a346e750aa0de1
parentd5b4bbb8f4fc4de784ebd1a9449c0511294ccf06
[MIPS] Fix clocksource parameter for low frequency timers.

The current shift value in clocksource was not suitable for low frequency
timer.  Find the shift value in runtime to avoid undesirable overflow.
Also calculate a somewhat reasonable rating value based on its frequency.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/time.c