[Skiboot] [PATCH] occ: use tb_to_msec rather than hard coding it

Stewart Smith stewart at linux.vnet.ibm.com
Wed Sep 14 17:43:58 AEST 2016


Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 hw/occ.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/occ.c b/hw/occ.c
index b606a675390f..c8457320dad4 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -154,8 +154,8 @@ static bool wait_for_all_occ_init(void)
 		      *(uint64_t *)occ_data_area);
 	}
 	end_time = mftb();
-	prlog(PR_NOTICE, "OCC: All Chip Rdy after %lld ms\n",
-	      (end_time - start_time) / 512 / 1000);
+	prlog(PR_NOTICE, "OCC: All Chip Rdy after %lu ms\n",
+	      tb_to_msecs(end_time - start_time));
 	return true;
 }
 
-- 
2.1.4



More information about the Skiboot mailing list