From: Alexey Brodkin Date: Wed, 10 Oct 2018 10:59:33 +0000 (+0300) Subject: ARC: make generic print_cpuinfo() weak X-Git-Tag: v2025.01-rc5-pxa1908~3365^2~7 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/kyber.dk/phpMyBuilder/static/git-logo.png?a=commitdiff_plain;h=ba9f56f3d463f9404f41958cefe2765c9a6bddcf;p=u-boot.git ARC: make generic print_cpuinfo() weak This allows board to override print_cpuinfo() because they might know better which ARChitect template was used. This way we may not only derive base architecture type and version but more meaningful things like "ARC EM7D" instead of simple "ARC EM", "ARC HS36" instead of "ARC HS". Signed-off-by: Alexey Brodkin --- diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c index 50cd7cdb61..a969a16722 100644 --- a/arch/arc/lib/cpu.c +++ b/arch/arc/lib/cpu.c @@ -60,7 +60,7 @@ const char *decode_identity(void) } } -int print_cpuinfo(void) +__weak int print_cpuinfo(void) { printf("CPU: %s\n", decode_identity()); return 0;