summaryrefslogtreecommitdiffstats
path: root/core/hostservices.c
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>2015-02-16 20:45:27 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-17 14:54:53 +1100
commit793122807444782bdf46608e4506d362a8078ed3 (patch)
treefd629215cbe791818a6af139298f52df0640f56b /core/hostservices.c
parentda4307f12b95713328db483726217bd45cb0ea51 (diff)
downloadblackbird-skiboot-793122807444782bdf46608e4506d362a8078ed3.tar.gz
blackbird-skiboot-793122807444782bdf46608e4506d362a8078ed3.zip
hostservices: Don't run pollers from hostservices callbacks
Use the _nopoll variant of nanosleep from hostservices, to avoid potential poller recursion. 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/hostservices.c')
-rw-r--r--core/hostservices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hostservices.c b/core/hostservices.c
index 9cc3341d..952f6b8c 100644
--- a/core/hostservices.c
+++ b/core/hostservices.c
@@ -467,7 +467,7 @@ static void hservice_nanosleep(uint64_t i_seconds, uint64_t i_nano_seconds)
ts.tv_sec = i_seconds;
ts.tv_nsec = i_nano_seconds;
- nanosleep(&ts, NULL);
+ nanosleep_nopoll(&ts, NULL);
}
static int hservice_set_special_wakeup(struct cpu_thread *cpu)
OpenPOWER on IntegriCloud