Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp163917pxx; Wed, 28 Oct 2020 01:15:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbXivWyhVjVhNbYWFIstGihdhGw5CupvGiZNt7bjVZ5DiqP3iWuDuhywPhFdXD5wgt3atc X-Received: by 2002:a50:950e:: with SMTP id u14mr6455288eda.260.1603872923348; Wed, 28 Oct 2020 01:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603872923; cv=none; d=google.com; s=arc-20160816; b=FVCCJjvpVbF71yFWFRImGR1uPodf4QVyDyBXaspjP0c4Kqh2XlbkkrbolnnhBgmf3L gpZrCkE1zW7C6IybxxrwX/EY/6TPQ1Pi0F6i6GSEZBu5iDBEnxZRgCVxO3aSS0CMQR3P QuxToAs/kabpE8t/bMZcVf1d12Su94RqQtej4G2UgU5KxFjboyA8IT6PGwvqJoycXLEy S88DAZV/783MZjp84qS2pan7a0FtMHlF71f8IcAKW03Tvq7E4z/Er6mSONExx3paNapq 3hkWuMO5jBHiNwTe6awySD97sY4KuJSiaBa992azl42M6S54W8zRh1aIKxCtRWTXPPfj QQYA== 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=oZrf2IbRHDwwvlaXRhsEv/ZEwK8u7YaCOPBYKlnZynM=; b=CVsIuSIchzIUN10NLsrjvQAFdJvAUFQHO26lhmqf/EdFJHV12RDIE8WyOuQMj1UXUl RVpeND+YCYsNLjX2p8ydAgot1YU8PyatXMmjap9TvkLqYT4yCDxG4FD3qVO/vSY/1WHN q9sOuUNGaZbG/4vzEjRu9fa7DNpPJuT97dXwlL/lBSJpOcODCF1mz2dGbR2VcI29IgH5 k0D+LKM+sRZ1NvZxoI5/qVzHR78sAWuqGNJEoUtVdHJN9HYMjyG1kp9pVzeNyK5SC8Wj i+k61QCLfRMt46WThbK3h84HwAs8oIGmc8N4SPs4Msbeq4Oq4buV+y0Ck1mRCpnacQ5Q 1uIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JXN1jide; 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 p90si2749641edd.284.2020.10.28.01.15.01; Wed, 28 Oct 2020 01:15:23 -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=JXN1jide; 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 S2894349AbgJ0OAm (ORCPT + 99 others); Tue, 27 Oct 2020 10:00:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:47402 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753328AbgJ0N74 (ORCPT ); Tue, 27 Oct 2020 09:59:56 -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 2CA3F218AC; Tue, 27 Oct 2020 13:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807195; bh=o0qb1mx8c1q6P4fZ7BG4638XwjlCO0XynwSpxNRUr5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JXN1jideFUQ7HignYv0qxKRiqicBnTaI4wvriPZckP5XWNuMBkxcGHfy+DDL7hiU8 iQJGnBFi+UYWmSQYWYlI/jTmjQg8pmhDYLnXfEBRH9isUVeT/pBa+8dkzDBtJ+H2Vc jQgJUkuOCFIqp5y2l7/kggmuByzorMokTSR5UOlc= 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.4 060/112] powerpc/tau: Remove duplicated set_thresholds() call Date: Tue, 27 Oct 2020 14:49:30 +0100 Message-Id: <20201027134903.408784230@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134900.532249571@linuxfoundation.org> References: <20201027134900.532249571@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 1880481322880..f6a92bf5ebfc6 100644 --- a/arch/powerpc/kernel/tau_6xx.c +++ b/arch/powerpc/kernel/tau_6xx.c @@ -107,11 +107,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