diff options
author | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | 2015-02-16 20:45:22 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-17 14:54:13 +1100 |
commit | da4307f12b95713328db483726217bd45cb0ea51 (patch) | |
tree | 8c438ddd873c3a5e315ff3866e739d74b1c45fd2 /core/timebase.c | |
parent | eb3247c872db194bf724299ef8d499b5384c4fbd (diff) | |
download | talos-skiboot-da4307f12b95713328db483726217bd45cb0ea51.tar.gz talos-skiboot-da4307f12b95713328db483726217bd45cb0ea51.zip |
timebase: Add nanosleep_nopoll
For use by hservices mainly...
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/timebase.c')
-rw-r--r-- | core/timebase.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/timebase.c b/core/timebase.c index 9321373c..ff266894 100644 --- a/core/timebase.c +++ b/core/timebase.c @@ -104,3 +104,14 @@ int nanosleep(const struct timespec *req, struct timespec *rem) } return 0; } + +int nanosleep_nopoll(const struct timespec *req, struct timespec *rem) +{ + time_wait_nopoll(timespec_to_tb(req)); + + if (rem) { + rem->tv_sec = 0; + rem->tv_nsec = 0; + } + return 0; +} |