aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAlexey Brodkin2018-10-10 13:59:33 +0300
committerAlexey Brodkin2018-10-12 15:14:40 +0300
commitba9f56f3d463f9404f41958cefe2765c9a6bddcf (patch)
treee369e74ecf32a0e2275f4ced1230c270b1d7ebae /arch
parent18e8923f6c27a0c66f35f09223290c4ad2c19f69 (diff)
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 <abrodkin@synopsys.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arc/lib/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c
index 50cd7cdb610..a969a167228 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;