Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751754AbaLaCy0 (ORCPT ); Tue, 30 Dec 2014 21:54:26 -0500 Received: from mail-la0-f42.google.com ([209.85.215.42]:37600 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751374AbaLaCyX (ORCPT ); Tue, 30 Dec 2014 21:54:23 -0500 MIME-Version: 1.0 In-Reply-To: <1419948147-19123-1-git-send-email-tklauser@distanz.ch> References: <1419948147-19123-1-git-send-email-tklauser@distanz.ch> Date: Wed, 31 Dec 2014 10:54:21 +0800 X-Google-Sender-Auth: QWkNj56-MGSoJfB4N3V-tkvOyKw Message-ID: Subject: Re: [PATCH] nios2: Use preempt_schedule_irq From: Ley Foon Tan To: Tobias Klauser Cc: "nios2-dev@lists.rocketboards.org" , Linux-Arch , "linux-kernel@vger.kernel.org" , Thomas Gleixner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 30, 2014 at 10:02 PM, Tobias Klauser wrote: > Follow aa0d53260596 ("ia64: Use preempt_schedule_irq") and use > preempt_schedule_irq instead of enabling/disabling interrupts and messing around > with PREEMPT_ACTIVE in the nios2 low-level preemption code ourselves. Also get > rid of the now needless re-check for TIF_NEED_RESCHED, preempt_schedule_irq > will already take care of rescheduling. > > This also fixes the following build error when building with CONFIG_PREEMPT: > > arch/nios2/kernel/built-in.o: In function `need_resched': > arch/nios2/kernel/entry.S:374: undefined reference to `PREEMPT_ACTIVE' > > Cc: Thomas Gleixner > Signed-off-by: Tobias Klauser > --- Acked-by: Ley Foon Tan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/