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

Vaidyanathan Srinivasan svaidy at linux.vnet.ibm.com
Wed Sep 14 17:56:04 AEST 2016


* Stewart Smith <stewart at linux.vnet.ibm.com> [2016-09-14 17:43:58]:

> Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>

Reviewed-by: Vaidyanathan Srinivasan <svaidy 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;
>  }

Thanks Stewart for the cleanup.

--Vaidy



More information about the Skiboot mailing list