summaryrefslogtreecommitdiffstats
path: root/src/runtime
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2014-12-01 14:40:34 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-12-15 11:43:16 -0600
commit6f296e894cfd30142b625b5ab12fb3226a57c06b (patch)
treef304041c277349cf1f352b03e6d79e416ed311e5 /src/runtime
parent5baa7182e4113352a7b83714c9ee6fafbd88ff16 (diff)
downloadtalos-hostboot-6f296e894cfd30142b625b5ab12fb3226a57c06b.tar.gz
talos-hostboot-6f296e894cfd30142b625b5ab12fb3226a57c06b.zip
clock_gettime support for HBRT
Change-Id: Iab8d113c00609d7b92fb2fd943b57c9a21671f11 RTC: 119002 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14668 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/rt_time.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/rt_time.C b/src/runtime/rt_time.C
index a5d00157e..e222a3718 100644
--- a/src/runtime/rt_time.C
+++ b/src/runtime/rt_time.C
@@ -33,3 +33,12 @@ void nanosleep(uint64_t sec, uint64_t nsec)
}
}
+int clock_gettime(clockid_t i_clkId, timespec_t* o_tp)
+{
+ int l_rc = -1;
+ if (g_hostInterfaces && g_hostInterfaces->clock_gettime)
+ {
+ l_rc = g_hostInterfaces->clock_gettime(i_clkId, o_tp);
+ }
+ return l_rc;
+}
OpenPOWER on IntegriCloud