diff options
author | spashabk-in <shakeebbk@in.ibm.com> | 2017-03-09 01:20:04 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2017-03-20 11:02:35 -0400 |
commit | bed103fa4c741d2c22764e45e496b3af5ea104ac (patch) | |
tree | eff92b12a3a965f23396aaccf954f92118d2bb59 /src/hwpf | |
parent | 8b4dd3ccc9b28c1d62a4425e529161c2ca8bd729 (diff) | |
download | talos-sbe-bed103fa4c741d2c22764e45e496b3af5ea104ac.tar.gz talos-sbe-bed103fa4c741d2c22764e45e496b3af5ea104ac.zip |
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 <sgupta2m@in.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/hwpf')
-rw-r--r-- | src/hwpf/src/plat/plat_utils.C | 5 |
1 files changed, 3 insertions, 2 deletions
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 <plat_trace.H> #include <target.H> #include <sbeutil.H> +#include <sbeglobals.H> 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. /// |