Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1678938ybb; Sat, 11 Apr 2020 09:07:42 -0700 (PDT) X-Google-Smtp-Source: APiQypKYcLyMeAned2nC8DeQmTanGnKEHdsks2cwaeO/TftfWbgbOukndjDPUDSPxE+U7fz5NeRK X-Received: by 2002:a0c:f709:: with SMTP id w9mr9963058qvn.159.1586621262460; Sat, 11 Apr 2020 09:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586621262; cv=none; d=google.com; s=arc-20160816; b=M6SJaszjHIeZ3gk+D7mNj160D8vFivb0iBje5SpT3UJVacBvE58nKP5l1fkztm9KyP 6/XkO3x/qgaWLfui97IZxLJcn/UxLSH5txwivogURl5om7aB15oPzMj5ynqCtM3lbg1+ fFlMgWdzAxi0RCnXSdIkLL2c4f97XXtcjLimT0fQoGeMh1fqKz77LqEU7seI/t92NmpI Ord/6Vx8NTboIGUkyrMZda1B73qRn7N5NCIJar3xjj5VkadD04ZcdLWyaeaQ3nGs+zi7 tmWekfPaiTjyPWPulK4tvugVxwP3DiwKJu5J17vX+TzlNhE1oz2skqTH9quahB9rUukQ +TeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CNSQoXFlKgWCIOZrqLUl6wID11RTUmYQHQ0/BX2/sHE=; b=XLmmkrVIOLmT+D2CRTChjmMzyu6IERkRmGl3ylnqwjbloi4qhvByWVmOwATTomvNp1 ixcSomX0DXGBJxG+mJonmuMZitif8glx6YADBzHzUMAPYc1AwK1H7PSltIj94O/4w21J 9ouZHAciWdyFj/kWtaL0GLL5LMxUgqox+CnMkwWLoy6JlpCQwAytHhgZmH6AReEUSGiS bVxrYH/qqGeORkRQuVmm/gSjs+mDFiKZEzSyElziEYI1x+X89M2SOFqNl+YBVP1YKUdj ExFMKuGGXt46RxRleW6CX/nR70PGqj3nW5INp8XoqgxIi0srRyPsK3W4cXLiq47bkxrA 7vlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VEFhYYF3; 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 b15si3038746qkj.27.2020.04.11.09.07.27; Sat, 11 Apr 2020 09:07:42 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VEFhYYF3; 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 S1726721AbgDKQFA (ORCPT + 99 others); Sat, 11 Apr 2020 12:05:00 -0400 Received: from mail-pj1-f67.google.com ([209.85.216.67]:39120 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbgDKQE7 (ORCPT ); Sat, 11 Apr 2020 12:04:59 -0400 Received: by mail-pj1-f67.google.com with SMTP id o1so1069311pjs.4 for ; Sat, 11 Apr 2020 09:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CNSQoXFlKgWCIOZrqLUl6wID11RTUmYQHQ0/BX2/sHE=; b=VEFhYYF3p5KxrLWRGJDL2N667q1ZPkgv86jZsYij0iLgeLWIpZQfWcmyAdgWzke6Ec 3hGjBRqZVbY8UfHcUIU7gvVNpklYSPllx6G44rJ0TY8EDVXanDjWa372sWVfYEG7PMH0 rnO/sXOpExMeG45YOWnS0ogFehdn439ohjZTVbD56ByhtXpxZ9P6XzKAtUzDtKSlQOKG prXjsy7a8660CL/9yOGNaP3d7kt65hdRbipohCxoO8QdCFBkmbMb7gZ7PG4/dAxA59sa csrhYFVtWytlUPL+JpDotta1x0+qwvbRbsz1iGjC05n8qM+PHrPAyEqgneYsBBN39dxa TJXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CNSQoXFlKgWCIOZrqLUl6wID11RTUmYQHQ0/BX2/sHE=; b=jiB/uU+Xdcs9mg0XiaNJIoLIL4Ecu2DZw4C1TaK6psRcrz6KfSezZQrs2SEuZzA9wN 5KWuFlKn1jWnxxOShmqzEMHs/fbuT6kliu+eG+x2MtTI9V4saBE+6ED29PXuqoWtolYw gK1QWe4SM8E1nuY0Jrr6t4CcG/+KKeuvmuAzLoHOqHn+F35RRZ8Tzgam5syf62T1X55W sdycvz9FxR62cnjK1CyFoDDkZKAMlq6khnqXsxVbzgNmsBJaqaB2k2M0y9eo4adBM0FV 5pkrSNaOqTinuxz8T/yqohXVcpxBWYW9QXb4phe260YclkqtlJG8JXfJp8LfK6ATHSWT yCkA== X-Gm-Message-State: AGi0PuaB7Fd1hlk7QepLS8p61fkKFSBWNKid4kok2o+2tvgNrFCkCrfn 12zn8Pn5kMv5TjnL1s/7Rc8= X-Received: by 2002:a17:90a:9318:: with SMTP id p24mr11553177pjo.163.1586621097496; Sat, 11 Apr 2020 09:04:57 -0700 (PDT) Received: from localhost ([183.82.183.27]) by smtp.gmail.com with ESMTPSA id jx1sm2117538pjb.5.2020.04.11.09.04.56 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Apr 2020 09:04:57 -0700 (PDT) Date: Sat, 11 Apr 2020 21:34:55 +0530 From: afzal mohammed To: Daniel Lezcano Cc: Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] clocksource/drivers/mips-gic-timer: Replace setup_percpu_irq() by request_percpu_irq() variant Message-ID: <4b0bc8921daea49636a604259025c65f358ab9c8.1586434781.git.afzal.mohd.ma@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Recently all usages of setup_irq() was replaced by request_irq() as allocators are ready by the time setup_irq() was invoked. Similarly setup_percpu_irq() can be replaced by request_percpu_irq(). But in the callers handled here __request_percpu_irq() has to be used as request_percpu_irq() does not give the user a chance to pass the flags, and IRQF_TIMER has to be passed here, so the variant __request_percpu_irq() is used. Signed-off-by: afzal mohammed --- drivers/clocksource/mips-gic-timer.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index 37671a5d4ed9..e8e6bb6159f5 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c @@ -67,13 +67,6 @@ static irqreturn_t gic_compare_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static struct irqaction gic_compare_irqaction = { - .handler = gic_compare_interrupt, - .percpu_dev_id = &gic_clockevent_device, - .flags = IRQF_PERCPU | IRQF_TIMER, - .name = "timer", -}; - static void gic_clockevent_cpu_init(unsigned int cpu, struct clock_event_device *cd) { @@ -137,7 +130,8 @@ static int gic_clockevent_init(void) if (!gic_frequency) return -ENXIO; - ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction); + ret = __request_percpu_irq(gic_timer_irq, gic_compare_interrupt, + IRQF_TIMER, "timer", &gic_clockevent_device); if (ret < 0) { pr_err("IRQ %d setup failed (%d)\n", gic_timer_irq, ret); return ret; -- 2.18.0