From b6c80356c72ce1dfce688a99d36db2ea47a744d8 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 8 Aug 2017 00:38:56 -0500 Subject: arm: Try to lookup the SOC name from dt/compatible Just ARM for now, but maybe this will become more generic and it will be possible to have the processor package name and description seperate, even for x86 and whatnot. Also perhaps work in Sockets/Threads/Cores information. Signed-off-by: Burt P --- modules/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/devices.c') diff --git a/modules/devices.c b/modules/devices.c index d3fd1110..094f9ec3 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -248,7 +248,7 @@ gchar *get_motherboard(void) #endif /* use device tree "model" */ - board_vendor = dtr_get_string("/model"); + board_vendor = dtr_get_string("/model", 0); if (board_vendor != NULL) return board_vendor; -- cgit v1.2.3