Loading
LoongArch: Adjust time routines for 32BIT/64BIT
Adjust time routines for both 32BIT and 64BIT, including: rdtime_h() /
rdtime_l() definitions for 32BIT and rdtime_d() definition for 64BIT,
get_cycles() and get_cycles64() definitions for 32BIT/64BIT, show time
frequency info ("CPU MHz" and "BogoMIPS") in /proc/cpuinfo, etc.
Use do_div() for division which works on both 32BIT and 64BIT platforms.
Reviewed-by:
Arnd Bergmann <arnd@arndb.de>
Signed-off-by:
Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by:
Huacai Chen <chenhuacai@loongson.cn>