Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp225684pxx; Wed, 28 Oct 2020 03:22:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8Id4PIlYZTffy8iyHpnP1rc8IVBAcqc10OsKwkcGPIGJ2KWY25yFO/jLWPphqK9VXXqv6 X-Received: by 2002:a17:906:b753:: with SMTP id fx19mr7203301ejb.167.1603880547904; Wed, 28 Oct 2020 03:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603880547; cv=none; d=google.com; s=arc-20160816; b=fGXSEaXPQvMcSgXcYVAi5Gv+BoAIPpIsJ8Y0TXRHaVq6tE46eH5aeX/V/X8Fi2AEs1 h34AuqQbjCpHaUrIa7cKaDwrJCTtHqqGDL+qhegAB46EZq6ukbOIzCCyEa+hFMkBYU3U gHsj5KSN5+0aPljIYA4XtMIterqcHTztszt0Qr5hR7AK0KnrIBsKATrHmpOlpA7VDs2u ppxwV+oenyZgDVeUUdKz7F6bV4XG6FPdeKRdjsUpElrvBRUJvFCiZWHIfn+kdulDMjnW U1ny/RoUsRJXV0wr3jogTROXRvcDjWmNmGKF29cTMCDzHPJpVZEBu6zK85v72RMrmhg8 4PzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cWdu7aJOw1P1I9R6PsfNMomIjsMeN5KtNR+XJRoYoNI=; b=ksB1Tth0isHq7wXWGfRiQpvCIiEMqA+SmP1EILKtm2nDacPty+rxVzwbZW4qplbrMU R/omaNsZ9Ul8hkdi0RE40CZlSy1r8H0VoEWxPlnqIAa/3mG1Yyzip279/rEoFY7rt4kG SiwbH/sRUX/6WMEfBxLKA2OcWZMv65kg86p6qytaiHc0apbOg/6XtY/LglyD8nM6OI/L 4wATGRGRB04H76DKkVoCv2n74n9ewLZVtNTtye5TyX9JekgwMhGWI2tpR61gA5+GU9UU UrXukNd4H0wi4DoAKX0GYZqXPk/AwWRt5lHV8LKlxRNbXDxIiZRi5RKZK0ax2SW62g5u hl+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YjtHrhyK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si2736409edx.542.2020.10.28.03.22.06; Wed, 28 Oct 2020 03:22:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YjtHrhyK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761275AbgJ0Oip (ORCPT + 99 others); Tue, 27 Oct 2020 10:38:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:37910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761246AbgJ0Oij (ORCPT ); Tue, 27 Oct 2020 10:38:39 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2F3C3206B2; Tue, 27 Oct 2020 14:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809518; bh=R5PbW+sXDK7226DchEgeE2gG3rKu+u6XKrP7QE2j8nw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YjtHrhyKAklvlfxzHawaKhmyKqw5Q1PH23rf1qSQ6ihjarSdh9oUnZDPtMwt86Mvb BBoEvRMX1yQeqp6PMe+ZRATLox3WsYveTyBrveP2R/iuaiNj9EURJ+zznl/nO8dPeM uqO/du1srAqCKW1NzYUI2DuBbI1zcUM9mDj15aso= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Finn Thain , Stan Johnson , Michael Ellerman , Sasha Levin Subject: [PATCH 5.4 225/408] powerpc/tau: Remove duplicated set_thresholds() call Date: Tue, 27 Oct 2020 14:52:43 +0100 Message-Id: <20201027135505.514848387@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Finn Thain [ Upstream commit 420ab2bc7544d978a5d0762ee736412fe9c796ab ] The commentary at the call site seems to disagree with the code. The conditional prevents calling set_thresholds() via the exception handler, which appears to crash. Perhaps that's because it immediately triggers another TAU exception. Anyway, calling set_thresholds() from TAUupdate() is redundant because tau_timeout() does so. Fixes: 1da177e4c3f41 ("Linux-2.6.12-rc2") Signed-off-by: Finn Thain Tested-by: Stan Johnson Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/d7c7ee33232cf72a6a6bbb6ef05838b2e2b113c0.1599260540.git.fthain@telegraphics.com.au Signed-off-by: Sasha Levin --- arch/powerpc/kernel/tau_6xx.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/powerpc/kernel/tau_6xx.c b/arch/powerpc/kernel/tau_6xx.c index 268205cc347da..b8d7e7d498e0a 100644 --- a/arch/powerpc/kernel/tau_6xx.c +++ b/arch/powerpc/kernel/tau_6xx.c @@ -110,11 +110,6 @@ static void TAUupdate(int cpu) #ifdef DEBUG printk("grew = %d\n", tau[cpu].grew); #endif - -#ifndef CONFIG_TAU_INT /* tau_timeout will do this if not using interrupts */ - set_thresholds(cpu); -#endif - } #ifdef CONFIG_TAU_INT -- 2.25.1