Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp187751pxx; Wed, 28 Oct 2020 02:07:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1uyFXIiymCvtSqkKrOdrhxTg4WGtwYKNHCUjLMZSF66iTlGs06zFNHYOoOSLhyP4st1AS X-Received: by 2002:a05:6402:4cb:: with SMTP id n11mr6651113edw.296.1603876052716; Wed, 28 Oct 2020 02:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603876052; cv=none; d=google.com; s=arc-20160816; b=qMJJSBZrBFRhvB6trZ6vzSILqRPjEt7S4WZt/cKTPeRd7rPC/7mCvDtqjeqz/z3Vc3 7J5K8yXfOQSMaBHfgB0G9eSP6WC0fZYrSe7IF/XoYHFinBIfgHVPZTThHnFgI3H/i7C+ k06ofHapML59+JltM7rvsbJoeyJjh12g2ccp6iXbQPMUkCOmebbOMtK1lLRXmvA8ODaR 2JQ1RoVD3ryjv32oJDo/HjmpigiriP/heBDddHGODy0UpseToocuJlXlhMj3A4ZHmswk dV4pYsCi6osi0vfaiE+rQFzeEIYFibT4SVNUiSkL8jypmN4KYZaC2pw25eu7aJdX/h9k MLMw== 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=5Uc6xLnZe0jyMY5QfxCaRK18AYdBDx8DQd3xDzn9RKs=; b=Ko4pEUEFQjMzW1nNF4Lb4sScY/pEtPxQ3COBB+Qe6y3GbV3s3lwH3How7nUYeZKqAW Sh7BjvDua35/8q2cwcJp8Zbk3Dr1+sU3hxlSLAl9SIR4B1iX0vIsS+tR229aIp3y1bYC ib3FfnJb4wbxFFZHL69LbVwusJ0hPf7k705DLZNw4AzHip4lQaeN2G4YeBtzgG5GH0zl PbD8AB0N9F50bNyFP1f9ntFSfXq2c5s7IMmm24f1+eC6WDzRUJ2CZoZD0Ao33Aey6lRy fZO6026wEtbgE2o9/UlR1jgpxvBcB4zg3LuL/XTceU6UX7v4rQ3oeykSwCt8cvAiQDUg Z4JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wB9ye4no; 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 bt10si1135660edb.503.2020.10.28.02.07.10; Wed, 28 Oct 2020 02:07:32 -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=wB9ye4no; 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 S1757092AbgJ0OQO (ORCPT + 99 others); Tue, 27 Oct 2020 10:16:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:33404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756269AbgJ0OMR (ORCPT ); Tue, 27 Oct 2020 10:12:17 -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 E2684218AC; Tue, 27 Oct 2020 14:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807937; bh=1uoyyZBa7a9RsIJ2llUpY36WmAMbNoNaAGHNDn5lHhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wB9ye4noe3i9i9fy/wAllN/zvafzP60aD7Rbe2DR7trMEnyliasTyJkck/pgtUmyW x58RR09qPMRl+eEYqiXj+mRct/TtFBRxUfLsqNvsAw7QVvK7H7E4FZElPS2D8Pnp9/ 8GIom2cQkubJdtIQSwx9pU0dsXYwSIlcN6bzEpsE= 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 4.14 096/191] powerpc/tau: Remove duplicated set_thresholds() call Date: Tue, 27 Oct 2020 14:49:11 +0100 Message-Id: <20201027134914.313153176@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134909.701581493@linuxfoundation.org> References: <20201027134909.701581493@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 64a27b20cf55e..9e8b709a2aae4 100644 --- a/arch/powerpc/kernel/tau_6xx.c +++ b/arch/powerpc/kernel/tau_6xx.c @@ -108,11 +108,6 @@ 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