From bed103fa4c741d2c22764e45e496b3af5ea104ac Mon Sep 17 00:00:00 2001 From: spashabk-in Date: Thu, 9 Mar 2017 01:20:04 -0600 Subject: Consolidating globals in SBE Overall an increase in size of 88bytes Change-Id: I975ec1536bc2d8153772133d26f750688a849a70 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37714 Reviewed-by: Sachin Gupta Tested-by: Jenkins Server Tested-by: FSP CI Jenkins --- src/hwpf/src/plat/plat_utils.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/hwpf/src') diff --git a/src/hwpf/src/plat/plat_utils.C b/src/hwpf/src/plat/plat_utils.C index 73a2609d..fe810f4f 100644 --- a/src/hwpf/src/plat/plat_utils.C +++ b/src/hwpf/src/plat/plat_utils.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER sbe Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -35,6 +35,7 @@ #include #include #include +#include namespace fapi2 { @@ -44,7 +45,7 @@ namespace fapi2 // frequency till istep 2.7 inline uint64_t delayCycles(uint64_t i_nanoSeconds ) { - return ( i_nanoSeconds/1000) * ( g_sbefreq /(1000*1000)); + return ( i_nanoSeconds/1000) * ( SBE_GLOBAL->sbefreq /(1000*1000)); } /// @brief Delay this thread. /// -- cgit v1.2.1