OSDN Git Service

openrisc: start CPU timer early in boot
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 23 Apr 2022 19:11:41 +0000 (21:11 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 13 May 2022 21:59:23 +0000 (23:59 +0200)
commit516dd4aacd67a0f27da94f3fe63fe0f4dbab6e2b
treed4b39700ff5ff1ae2968d3a2c3b05b5ddfc4b3a5
parent408835832158df0357e18e96da7f2d1ed6b80e7f
openrisc: start CPU timer early in boot

In order to measure the boot process, the timer should be switched on as
early in boot as possible. As well, the commit defines the get_cycles
macro, like the previous patches in this series, so that generic code is
aware that it's implemented by the platform, as is done on other archs.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Acked-by: Stafford Horne <shorne@gmail.com>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
arch/openrisc/include/asm/timex.h
arch/openrisc/kernel/head.S