From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BCC73C6FA82 for ; Wed, 21 Sep 2022 18:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MWSRFzpSnTvuAYbwt+Q3o3KWOzhiDL1rbt0XNPm/cYE=; b=eSmp3W69Bnkowm RrrScSOZkgQx/NYq1CpmZySs5sAXNOXQYh8i0hbXe6ic5tvW1BrCtswB6owceCK2EKLdMylmdgNhy gJsOKV4P25fTSNCBaT7MTyCk6BcydIL3+PAUfC9KDS979mBrexvoj8UJiAnCXw073UvyV5gmMNaC+ +KAcpkxLjhe3RsjhhiPldZujZTPBc0H5DM7G5DxDduulF5zXHfIRyyshpUvZ4UEql46FyWNzQw0Gg IvpPGeB2yhOSddPSPkG40uGwhA/R50Njd4eWtSHLWsW+Xs5MvnD7GPpJGB/5y2rvR9ZZVhOJL+0be nShHDUEg/vZUAQP1+yow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ob4I3-00CI5N-HY; Wed, 21 Sep 2022 18:17:43 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ob4Hv-00CI3W-PU for linux-arm-kernel@lists.infradead.org; Wed, 21 Sep 2022 18:17:37 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 19199B83035; Wed, 21 Sep 2022 18:17:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1958EC433D7; Wed, 21 Sep 2022 18:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663784252; bh=aBVGz+eB0d+PppDzgEG+bs/DglPpA5TFJNyvW0qmRck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KTftuE5dHlO+zicA9hwG12XhFiQUKuPJoJsKFXJ2rzPZtwueEU1z6JaFVAiRi10lt 8wagfBekXwZlyHEu9LeQw1lhycxwhVjS//zSaaTavfjKpxPV22/A4SdZsOs84VjfPG IKjxVcwV5IK35aHByRO31lAcJN3TCrezz9CT9vWkQ0mPFcSS/GPzMlUaSzVORZzFsW SVdOmGQDGYvVVv9e4LkfKIw3PsTZBX4HvA47sO3IbbQsCd9wwfWEEdAYiF0sdeRDsZ DgxH/QBJcJTe9Ee6/No0CJLOb7vZ9nEVDDUIRt8EDARVkmq0bWxvNhhxhAq1bD4Nlp a/kgmbOHKVpXA== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v1 1/3] kselftest/arm64: Don't repeat termination handler for fp-stress Date: Wed, 21 Sep 2022 19:13:43 +0100 Message-Id: <20220921181345.618085-2-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220921181345.618085-1-broonie@kernel.org> References: <20220921181345.618085-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=996; i=broonie@kernel.org; h=from:subject; bh=aBVGz+eB0d+PppDzgEG+bs/DglPpA5TFJNyvW0qmRck=; b=owGbwMvMwMWocq27KDak/QLjabUkhmTtkLCzEUdLFlieSerJfxmUsP7AsawiNfFUicBZLjy9aUzJ YTadjMYsDIxcDLJiiixrn2WsSg+X2Dr/0fxXMINYmUCmMHBxCsBE1p9l/8Mjx64ks4XVvk7EJ/ZXhu iKF9xcGf2eUtGqd18bPXsd1tuvMPNRZKAkz9bEoMk+azcf+lHauFyz79b0lQ3dr9+dvicg23hEeBLD rZVaKu4GSlbZ3Gf35hnsj2zjbTzUIX2sZU31lpA38/4u+XBkTaT9hvzjMtGd+9/uvWorqrgqNOd1pP rSz/J562c5ctzy32Z7dvvetqxaqQgv5ti7myY93yDg0Baje5jfplNomeLRGBbLoOeuXGGt50SdOnxj i85Jn33TI7T+zKyQ7QYnkprquGIs1nIo/N0dvrC2wvpLmW1pcs2MtveyMlVF60XlPmzUUJ20xlj8gd zlp8FZV+c/YtteEbybxynIzX8OAA== X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220921_111736_005707_D046E1DC X-CRM114-Status: GOOD ( 13.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When fp-stress gets a termination signal it sets a flag telling itself to exit and sends a termination signal to all the children. If the flag is set then don't bother repeating this process, it isn't going to accomplish anything other than consume CPU time which can be an issue when running in emulation. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/fp-stress.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/arm64/fp/fp-stress.c b/tools/testing/selftests/arm64/fp/fp-stress.c index a5c0ebef2419..4387c3cacaa7 100644 --- a/tools/testing/selftests/arm64/fp/fp-stress.c +++ b/tools/testing/selftests/arm64/fp/fp-stress.c @@ -255,6 +255,10 @@ static void handle_exit_signal(int sig, siginfo_t *info, void *context) { int i; + /* If we're already exiting then don't signal again */ + if (terminate) + return; + ksft_print_msg("Got signal, exiting...\n"); terminate = true; -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel