Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5847339ybv; Wed, 12 Feb 2020 01:11:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxtqu2PnBOZAqz2xGBFq6rMHGs0Mv1yIHPXicUfMjWvC7pNUpWgqUjmRojLt/gsAbJ9OO2v X-Received: by 2002:aca:c68f:: with SMTP id w137mr5683239oif.179.1581498714009; Wed, 12 Feb 2020 01:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581498714; cv=none; d=google.com; s=arc-20160816; b=RtxaUl81+WCbbaFsWsVb4nSx9awIxAgNu41kDdOBctDaLKX4gNPoY8EdEEUUUw+Ub5 YaJ67hA08CNfy3YwByi5gmGpb+Ks6+/5epaDK89Ukb18IePBCqFeX+fIjkdzVZiUUcLF 0XhTAdpLTuyR3F9Cg/uPR2+Aw8m36YljYAtOrNMUzZn7/7SqNXcoWuoQku4MlMVTrqtt Q7OftuSLaDT8jIBnz9/7xZNgRjnB8dK0EJsU3M5gFGAL2qdlL3OEjN5qMoywTZdkcc2Y 8zSsC0i01Jq0WakZJxMZiySn3vZp32QgT31w5XrvqGWVs7Xlmn5Z/IxE+xSttRoRZAn1 FEYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rMWEtLnC4u+GSkpyrMggEcsRqsLKGC5Kgx8RCoWgoP8=; b=wuVgg0AgANsaQ9HzDG32lliaWVYJYCZA5hAX6Y7caBR2DbpJjQ6+xvz7AEtQsD10mu e//IEc0jjvdmXQ4E4JVFrvhviZr7KaYPVi2G5bCnC0T9CCwTTr+rYATZwFCZUpqX4tds ViHeLJk3mYtagDdcX4IiOlMkovQwhbu1cgAoEhMZZKF2S/RzhPNMVIQLEfz8kzCMupzL birireg4pkvFZgaHJrCHAXTPleb7kMyXD47DlhE8+xiTmhFnoiG+L1W8V+i17p8hs+mv /UYsZnDxEp+3OBV5RkzJy4Z2oIw9+YhdUZQlBxi6gcYdwRykvnH/7iEc1tdDPWGIH0HQ KNiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S3xL0M+i; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si3589342oto.287.2020.02.12.01.11.41; Wed, 12 Feb 2020 01:11:53 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S3xL0M+i; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728649AbgBLJKM (ORCPT + 99 others); Wed, 12 Feb 2020 04:10:12 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:43341 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728567AbgBLJKL (ORCPT ); Wed, 12 Feb 2020 04:10:11 -0500 Received: by mail-pg1-f196.google.com with SMTP id u12so517876pgb.10 for ; Wed, 12 Feb 2020 01:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rMWEtLnC4u+GSkpyrMggEcsRqsLKGC5Kgx8RCoWgoP8=; b=S3xL0M+iWbah1a5O2X9Ter5DBgCXGP2spoBe9HeyBU9F+JKH06Wyyhjtp44GJAmUmf 3/6rdzhHsX3KBDKwzgUYBO2mwQztR6RuS0ZOS5LgRabbo8YvX0WcqTmQigE8PIYstjSG m4A4xvsSBQzUKebBqoyei996nGneoiREz8kmx4gOO2IK0E/8vm9C5eRwFOI4jD++hApP J1m5Hv8S+H8IkB7fj1mWC9DkKSR7Dw4VhwzffPlgzheUn0lxjHlnojexRA6PooAc5I8H z+G8WTgzb5UwWqHYiJp2gAmH2a1oCcDq35n4azrD8wvuJytckCaU0Ur10YkzLksVFP5E idSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rMWEtLnC4u+GSkpyrMggEcsRqsLKGC5Kgx8RCoWgoP8=; b=EvZfpOlzfJM4L8iCDZU5OKLdLJEqoCOIMMt1TDhEJELW87tTt2CB65edjb6eq1Sc6J zV8DO5Cp7httE1N9mxaA6uAtqAxIKb/UFIyZwOn2MSYWlwqIZQrGY/EULBUc2Ge+WobJ 13optf6FLRAEmAByu7qmrOoSNrGd1OxShY6ykg2KA2f9HSn13EQusVdQNaE6IjCEWWKl 0V57+z2dJZW0sT5eKsgkKDH0qBKjBF8PtnSgzXYMNMRyjowjfmnCM7MJVSKafxv7BBJ7 GI6NS5c4Uc8siOqQruxGp60Y3J9cDQVsPt05I5Vo8x/tm/Vn0zXx3jhWX6gc7uVvTe+O THfw== X-Gm-Message-State: APjAAAXNR/wZ38IN+8ZLvSnJSzRv/mO7iO0drpKBpJbv8DJqsDXBzHux xV+YvwNpkbhRi7sGcWVDkTO+qR8imxZwrwH2Esg= X-Received: by 2002:a63:fc0c:: with SMTP id j12mr11223909pgi.378.1581498611254; Wed, 12 Feb 2020 01:10:11 -0800 (PST) MIME-Version: 1.0 References: <85574e1ae1e6870ef01b6e61c5b1c5f393c2ac4b.1581478324.git.afzal.mohd.ma@gmail.com> In-Reply-To: <85574e1ae1e6870ef01b6e61c5b1c5f393c2ac4b.1581478324.git.afzal.mohd.ma@gmail.com> From: Max Filippov Date: Wed, 12 Feb 2020 01:10:00 -0800 Message-ID: Subject: Re: [PATCH 15/18] xtensa: replace setup_irq() by request_irq() To: afzal mohammed Cc: "open list:TENSILICA XTENSA PORT (xtensa)" , LKML , Chris Zankel , Andrew Morton , Kees Cook , Thomas Gleixner , Sinan Kaya Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2020 at 12:05 AM afzal mohammed wrote: > > request_irq() is preferred over setup_irq(). Existing callers of > setup_irq() reached mostly via 'init_IRQ()' & 'time_init()', while > memory allocators are ready by 'mm_init()'. > > Per tglx[1], setup_irq() existed in olden days when allocators were not > ready by the time early interrupts were initialized. > > Hence replace setup_irq() by request_irq(). > > Seldom remove_irq() usage has been observed coupled with setup_irq(), > wherever that has been found, it too has been replaced by free_irq(). > > [1] https://lkml.kernel.org/r/alpine.DEB.2.20.1710191609480.1971@nanos > > Signed-off-by: afzal mohammed > --- > arch/xtensa/kernel/smp.c | 8 ++------ > arch/xtensa/kernel/time.c | 10 +++------- > 2 files changed, 5 insertions(+), 13 deletions(-) Acked-by: Max Filippov -- Thanks. -- Max