aboutsummaryrefslogtreecommitdiff
path: root/clocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'clocks.c')
-rw-r--r--clocks.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/clocks.c b/clocks.c
index c115d8e..4b2a11c 100644
--- a/clocks.c
+++ b/clocks.c
@@ -459,8 +459,13 @@ int clock_dump(char *clk)
{
int ret;
- if (read_clock_info(clock_tree))
- return -1;
+ if (!clock_tree) {
+ if (clock_info_load())
+ return -1;
+ } else {
+ if (read_clock_info(clock_tree))
+ return -1;
+ }
if (clk) {
printf("\nParents for \"%s\" Clock :\n\n", clk);