Commit 4c8bad3e authored by Thorsten Blum's avatar Thorsten Blum Committed by Max Filippov
Browse files

xtensa: use HZ_PER_MHZ in platform_calibrate_ccount



Replace the hardcoded 1000000UL with the HZ_PER_MHZ unit macro, and add
a space in "10 MHz" to improve the readability of the error message.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Message-Id: <20250915120540.2150841-3-thorsten.blum@linux.dev>
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 5d5f08fd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@

#include <linux/printk.h>
#include <linux/types.h>
#include <linux/units.h>
#include <asm/platform.h>
#include <asm/timex.h>

@@ -39,6 +40,6 @@ void __weak platform_idle(void)
void __weak platform_calibrate_ccount(void)
{
	pr_err("ERROR: Cannot calibrate cpu frequency! Assuming 10 MHz.\n");
	ccount_freq = 10 * 1000000UL;
	ccount_freq = 10 * HZ_PER_MHZ;
}
#endif