aboutsummaryrefslogtreecommitdiff
path: root/hdata/test
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2016-09-23 15:55:14 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-09-27 16:16:35 +1000
commit11c2a586c24890b50d986efa5f46fcccec5d80f4 (patch)
tree1a4948def6b3db450233f03a465febd8c94845dc /hdata/test
parentb5e54375bdc424eb2e709d41d2306d854f7e07bb (diff)
downloadskiboot-11c2a586c24890b50d986efa5f46fcccec5d80f4.zip
skiboot-11c2a586c24890b50d986efa5f46fcccec5d80f4.tar.gz
skiboot-11c2a586c24890b50d986efa5f46fcccec5d80f4.tar.bz2
core/init: remove master_cpu parameter
master_cpu is used to determine the ChipTOD master if no ChipTOD information is available in the HDAT. However, it is set to zero at every skiboot entry point (fdt_entry, the 0x180 FSP entry and opal_boot_trampoline) and is otherwise unused. This patch removes this passing around and uses the boot CPU PIR to find the ChipTOD master rather than zero. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/test')
-rw-r--r--hdata/test/hdata_to_dt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c
index 86fdf5c..9142d24 100644
--- a/hdata/test/hdata_to_dt.c
+++ b/hdata/test/hdata_to_dt.c
@@ -232,7 +232,7 @@ int main(int argc, char *argv[])
fclose(stderr);
}
- if(parse_hdat(false, 0) < 0) {
+ if(parse_hdat(false) < 0) {
fprintf(stderr, "FATAL ERROR parsing HDAT\n");
exit(EXIT_FAILURE);
}