From patchwork Mon Feb 16 15:15:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ananth N Mavinakayanahalli X-Patchwork-Id: 440186 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 61E33140151 for ; Tue, 17 Feb 2015 02:14:22 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 57B951A0A64 for ; Tue, 17 Feb 2015 02:14:22 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e28smtp03.in.ibm.com (e28smtp03.in.ibm.com [122.248.162.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id BD2701A09D9 for ; Tue, 17 Feb 2015 02:14:19 +1100 (AEDT) Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Feb 2015 20:44:16 +0530 Received: from d28dlp02.in.ibm.com (9.184.220.127) by e28smtp03.in.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 16 Feb 2015 20:44:14 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id 8A7BF3940060 for ; Mon, 16 Feb 2015 20:44:14 +0530 (IST) Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay03.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1GFEE8q655740 for ; Mon, 16 Feb 2015 20:44:14 +0530 Received: from d28av04.in.ibm.com (localhost [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1GFEDrO016523 for ; Mon, 16 Feb 2015 20:44:13 +0530 Received: from thinktux.in.ibm.com ([9.79.200.14]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t1GFEBHZ016337 for ; Mon, 16 Feb 2015 20:44:11 +0530 To: skiboot@lists.ozlabs.org From: Ananth N Mavinakayanahalli Date: Mon, 16 Feb 2015 20:45:27 +0530 Message-ID: <20150216151527.1774.78577.stgit@thinktux.in.ibm.com> In-Reply-To: <20150216151522.1774.34084.stgit@thinktux.in.ibm.com> References: <20150216151522.1774.34084.stgit@thinktux.in.ibm.com> User-Agent: StGit/0.16 MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15021615-0009-0000-0000-000003F9D5E0 Subject: [Skiboot] [PATCH 2/3] hostservices: Don't run pollers from hostservices callbacks X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Use the _nopoll variant of nanosleep from hostservices, to avoid potential poller recursion. Signed-off-by: Ananth N Mavinakayanahalli Acked-by: Benjamin Herrenschmidt --- core/hostservices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hostservices.c b/core/hostservices.c index 9cc3341..952f6b8 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)