Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp269555pxx; Wed, 28 Oct 2020 04:36:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWred2n5CA+u8StvpykR5fhDNoffz80tFy4nmcbhb7NibXPsppaHSjPruUyaPKYx+DwbvU X-Received: by 2002:a17:906:6a8b:: with SMTP id p11mr7312429ejr.470.1603884988832; Wed, 28 Oct 2020 04:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603884988; cv=none; d=google.com; s=arc-20160816; b=XrRGKpACSC5O+kltM9R8cjc/EwVKzgClOj3fNdc6cD0WRbMHc3t7Yg8JuPfsX8NY9z l+9BFiy4E09lYxagB8k85XC93DG+BmynaawX/7DsT3pu4sxDxw/im2ljLjYKnzG5cTpY dH8jQn6MEBFdQlBcClXJ/ReQQWf4fegUvkMJSECzeP7kd4OyvKLWkGgqipBDbLn/O9s/ a+DixoljhW0hHR/nfMQm6+1HPrXwd1RsRVBXU8Ak5CIXb0ENafk9C3ft4CZS/wG+h3eo 37tlHkjJ32vR1OzNGcWw5d2NRk/u2D4h6Dc6O8swj8hKzhDvj6rQAjV0UCtx/aGd1R6v /bSg== 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=U5t2Sb2m6s6GMevJYa577Hw1mufvNISWuffJ+2yI+6XOQpThiQAQBtslgvRAXsXP2v /62ObKseM4z2HefkUTiruL2oahC4jVxdA/qRJOmWNc0JRxEGyAR0VqgY6cETBpwfWcbT ng7WH9U4DgJdPNQZIMs+/QXiSHkq14Z8D7HZbzwAp6JJSK8FITLoBsfG/wXr3170TyZD KKx9xwEsv3az3Z+o9H4vk15K1wpmEjRTB6EgVZtCfOIu2q0nLTOpmF3d6EhVBJdX1VhS wT7thUqfPif3g4pxTGspDq8rOwrG2aIRdOKkhoIuNP2yckAgffWhgaL9y83L/C1n8kH9 RgVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="MTT9jb/L"; 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 q18si2524555edb.466.2020.10.28.04.36.06; Wed, 28 Oct 2020 04:36:28 -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="MTT9jb/L"; 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 S1793969AbgJ0PJb (ORCPT + 99 others); Tue, 27 Oct 2020 11:09:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:39352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1790473AbgJ0PEl (ORCPT ); Tue, 27 Oct 2020 11:04:41 -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 B0C4E206E5; Tue, 27 Oct 2020 15:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811081; bh=R5PbW+sXDK7226DchEgeE2gG3rKu+u6XKrP7QE2j8nw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MTT9jb/Lc+/nc4+SxTnkqbmvbQSE/b13Cd0Hs84NMKAygjeBtURLOUHSw4wgGiMby M8jEIjOgx51GQgO2jhFs5MwI/HyoVqJtGZRBpDVrBCxzqkDNU2ncrcnuuSUiz6t0qY zQCWArslQwLnhQgSyJRKfvqV6Oob5d3KQNWWz4Uk= 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.8 366/633] powerpc/tau: Remove duplicated set_thresholds() call Date: Tue, 27 Oct 2020 14:51:49 +0100 Message-Id: <20201027135539.868953175@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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