Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1511741imc; Mon, 11 Mar 2019 15:51:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqymsQBCkhJk7Ifdk1vCJcHd9LH/Bqi4OpbkotS4FxlWPV71iRlD4sYo2kMNOcT5/QsnNjrr X-Received: by 2002:a63:5318:: with SMTP id h24mr32127572pgb.76.1552344667682; Mon, 11 Mar 2019 15:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552344667; cv=none; d=google.com; s=arc-20160816; b=frYuVsoRYi1M9aq7wbSvjxnaqomWikE3Emga7RLq3Xi+Y8JQ7mq9H8UCf9lto7jmUJ 9kvTY+NSzboPYfMSVDJAw8Gw0J1oQOqkQBLEt/rWBcbJCZfzcGTiFYpH3reTcgb6UbV/ c2ltLLEejvjDecpYehVexqnsbhS5ZXhMDLVR9vMZ+fIF0SEbuGqGX0W66H7f0/2BWnm/ l4F9BhbBxKa0JNfXKi496gLKRQvwLk1LDTvLdUv1VeNrpONKD2HLWmrbAtm/15YO25bN dspdgtWKqnNt8pRkpe5UnOBlQ1Ph8yxyNCQJaifywtYmPd1drGSfen3fslo9v8riepi3 ykqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jTz4o2hKZtYwcNNs6x51l4CDkxV75yDNAtdBEljfxhM=; b=EZpEDilKBv75wg6kLSaOe7e+lAo0AV7ffx60nnnIx+n2ZKh8sSC3n1/oDYRKE1wrK/ m3g6GSVKaBjSYfZ3mfGyUTyJKX9BWoE/45aiKVXvN5TaFWot4QU2pUGo/oQ/hys6EUGO +P2lmsiNlMnZj5QNuW1jfoB2ciYCYqD7daK2l4ltTo9/Xamjfe4sE3Z97tJY/nW5wahk GmrD2YelEXjSiQBX8qd1dG2YGit9AMc6DpNEtiMlOrwEovI2dEP8+JtENZsDxaRP+Xa0 UgdROT4DRjt5RSr/pmGdBBBNsLqkJOdYdI1WKXF0jYGboN56sqcRamC7BFUpisUJo6VQ O2KA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9si6380709pls.151.2019.03.11.15.50.52; Mon, 11 Mar 2019 15:51:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726618AbfCKWsP (ORCPT + 99 others); Mon, 11 Mar 2019 18:48:15 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33926 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbfCKWsN (ORCPT ); Mon, 11 Mar 2019 18:48:13 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A47B1993; Mon, 11 Mar 2019 15:48:13 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A8C353F59C; Mon, 11 Mar 2019 15:48:12 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: Michal Simek Subject: [PATCH 05/14] microblaze: entry: Remove unneeded need_resched() loop Date: Mon, 11 Mar 2019 22:47:43 +0000 Message-Id: <20190311224752.8337-6-valentin.schneider@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190311224752.8337-1-valentin.schneider@arm.com> References: <20190311224752.8337-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the enabling and disabling of IRQs within preempt_schedule_irq() is contained in a need_resched() loop, we don't need the outer arch code loop. Signed-off-by: Valentin Schneider Cc: Michal Simek --- arch/microblaze/kernel/entry.S | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S index 4e1b567becd6..de7083bd1d24 100644 --- a/arch/microblaze/kernel/entry.S +++ b/arch/microblaze/kernel/entry.S @@ -738,14 +738,9 @@ no_intr_resched: andi r5, r5, _TIF_NEED_RESCHED; beqi r5, restore /* if zero jump over */ -preempt: /* interrupts are off that's why I am calling preempt_chedule_irq */ bralid r15, preempt_schedule_irq nop - lwi r11, CURRENT_TASK, TS_THREAD_INFO; /* get thread info */ - lwi r5, r11, TI_FLAGS; /* get flags in thread info */ - andi r5, r5, _TIF_NEED_RESCHED; - bnei r5, preempt /* if non zero jump to resched */ restore: #endif VM_OFF /* MS: turn off MMU */ -- 2.20.1