From patchwork Thu May 6 12:02:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tian Tao X-Patchwork-Id: 12242065 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98CB4C433ED for ; Thu, 6 May 2021 12:05:39 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 402496112D for ; Thu, 6 May 2021 12:05:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 402496112D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=hisilicon.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=s9AnDdQm2wWQrJX71PQYHXd83SiXDOLw1ZEsdO56fBs=; b=ldGBkKM55sxdV1tAVeQ4V2h0Vv enwSmMflWZlLMbe3iLtqzKXoVBzdXUYkZ8C6nF6u99k0tOwXoSkDPFPr1qyNJ2Y2xiP4Cm4onZnWE PiANYCTCnqawoLe05wCXvXsGXXuXkp9HcMscEcJFgLnD9C90DxyhWC63ZxalPualnoCwvzsrHfgP/ n1VnBaJ/01y3C6TNcKRIFtEGvSn19Nf0oJ1vk+oFaIQX4WUw9DX/mnXMXWnjVQFi3+oWYqnE4sRnF lVRrzGm1mOfFDo4FvZ4qhdrcmRwKxcdl/GyLN0ot1i3WKi7I0L3WazHDdhy2jKlriqQqMm5cx9Ryx XmVT4ufQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lecix-004CMK-2r; Thu, 06 May 2021 12:03:23 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leciu-004CMC-OI for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 12:03:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=IA1gD8ufCNPMQT4lJIN17bPTAsowoLlumYyYbLDsBZ0=; b=nnpFkKXB46lyCssIGbFq/08Bkv 6b+FU9/b6fNo83gnVGZptvJbjWJ+PpeFnidXkFVKHnu7HhKah8xIZvofhqa3wiyHYWS0RorRGvw1k QmN417KotYaTFUh5klalgLqGZ3LvayX7cve20vJcrgwdg2wkjlKK+NT86CwkZpVVKdgZG73IHrGpL 3/mj9cf5bA0aEBxq/50x53FooG/djAVd479Q4M+TMFDaJ8KiCnYFyAnZg+vPHiP8IBdkfj80XJz+3 ccChdImBdmqOPVm4bdCAmc7k+pDA+uL7+1TSWQHTJPnd++kfcqfit8/cHh0Xta5jZ3X+F5c/yq22e gIl7fx1w==; Received: from szxga06-in.huawei.com ([45.249.212.32]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leciq-0060Np-Ps for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 12:03:18 +0000 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FbXGb4ZW3zlYmc; Thu, 6 May 2021 20:00:55 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Thu, 6 May 2021 20:02:53 +0800 From: Tian Tao To: , CC: , Tian Tao Subject: [PATCH] arm_pmu: move to use request_irq by IRQF_NO_AUTOEN flag Date: Thu, 6 May 2021 20:02:59 +0800 Message-ID: <1620302579-5949-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_050317_017387_567E9174 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org request_irq() after setting IRQ_NOAUTOEN as below irq_set_status_flags(irq, IRQ_NOAUTOEN); request_irq(dev, irq...); can be replaced by request_irq() with IRQF_NO_AUTOEN flag. this patch is made base on "add IRQF_NO_AUTOEN for request_irq" which is being merged: https://lore.kernel.org/patchwork/patch/1388765/ Signed-off-by: Tian Tao --- drivers/perf/arm_pmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c index d4f7f1f..6bcfc52 100644 --- a/drivers/perf/arm_pmu.c +++ b/drivers/perf/arm_pmu.c @@ -644,11 +644,9 @@ int armpmu_request_irq(int irq, int cpu) } irq_flags = IRQF_PERCPU | - IRQF_NOBALANCING | + IRQF_NOBALANCING | IRQF_NO_AUTOEN | IRQF_NO_THREAD; - irq_set_status_flags(irq, IRQ_NOAUTOEN); - err = request_nmi(irq, handler, irq_flags, "arm-pmu", per_cpu_ptr(&cpu_armpmu, cpu));