]> bbs.cooldavid.org Git - net-next-2.6.git/commit
MIPS: Alchemy: get rid of allow_au1k_wait
authorManuel Lauss <manuel.lauss@googlemail.com>
Sat, 22 Aug 2009 16:09:27 +0000 (18:09 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:50 +0000 (20:07 +0200)
commit2882b0c63ac6085fd5c18959240b6f7d6ffb8d5b
treea95571203336aaec43dd505c81ab7dc8e46efa78
parent9d24bafb0d1ecf636f71a56f9d6f071f5c7a882d
MIPS: Alchemy: get rid of allow_au1k_wait

Eliminate the 'allow_au1k_wait' variable.  MIPS kernel installs the
Alchemy-specific wait code before timer initialization;  if the C0
timer must be used for timekeeping the wait function is set to NULL
which means no wait implementation is available.

As a sideeffect, the 'wait instruction available' output in
/proc/cpuinfo now correctly indicates whether 'wait' is usable.

Run-tested on DB1200.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/common/time.c
arch/mips/kernel/cpu-probe.c