Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1418334pxb; Fri, 10 Sep 2021 05:37:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhk4KVjXVdNiVW3r7I5KvqD8f7Nlo/Si/8uopGP6JYzcOaxmYoli8I32Dpe/lIW6/4ornN X-Received: by 2002:a05:6e02:2163:: with SMTP id s3mr6513560ilv.172.1631277463199; Fri, 10 Sep 2021 05:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631277463; cv=none; d=google.com; s=arc-20160816; b=qWiGzDrsbDn/BPxmklq15QkPsS66mHBn2ZLf5Db3zwVzUqOhkFJugH09dhFIdTH2Mc PloeRsureC5rWiDT09d6i15hUdl+Rf70k/c105RNDbBGqHnHx9nwO6uUpKBv57mh2fck NRcMf0m2MsDHTjxcZfi+WypF7RRQZfPI/J6cfJKO4IWgSrufUyy5z/LpkKWvEzdLCWPL /RcyvazN40bQckb5acXMxbVhfa7gO9uLepWN/qPsSJApulXXMoN6FRZAygBhHB+LlCY0 Jw752KnUIJgfefrT91P+0VyiFYNGY98kNxCEMdk3BBF8J7ZinWzDH2JCP9B6Sgr+61hq cZkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zYtDEnF900pn2MF+v8/zobI+XfRwz0k5wow33vkHVYs=; b=DmEp9CG5vbnhxDUf5m+OcO6Zj/PCZ/Y4ghp+Jimd9HZRQzQLSHEeTIe5Hx5jSphjfv I+aS/lQuM3g6L46HuZt5c7ViHL8Dqb8XHpzaOJagBMMfy89XYPL3xAxJ0l1fGc/DBaZd 1fIJr79F+UZ/bXe/8gBxffOMaFjpdZq4I1wkGOkGKdO6VeyQambxiw/mhzbrzZRboKb9 y7ezW+o6TwZqxszEwmy9hnml6mTvGma/C4p7rrt1YHQ6A33EX98sXplmsJGVCW2J11Tv MgwPNHxV3/dYUGKp3tABquadgULt7vMxln14/Ru7GCsZGsP05n3MxCAnV8LJw7gaXEHZ FFyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ARR8coVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si5749384iog.90.2021.09.10.05.37.31; Fri, 10 Sep 2021 05:37:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ARR8coVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234110AbhIJMg5 (ORCPT + 99 others); Fri, 10 Sep 2021 08:36:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:54456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234132AbhIJMfl (ORCPT ); Fri, 10 Sep 2021 08:35:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ED03B61208; Fri, 10 Sep 2021 12:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631277270; bh=X3bhiUlAufGCTM6lTGf8Zx8nIqp8Pnl4bDwRLSOpxMY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ARR8coVbCRljF211MmiDcAahxHnfaF4vA4azv3wpu3ycsNUjp0W5E74BZ1GfMufSz gMPHXTfZPHIh5LbRi4nluCwYROyZHqRjzHjP9CE9KQGIuGgAX6zolZS+ExKU7KBolt e9wOoBm7LlGev2zKuzgQy/hdGjgH2jQpeNuPy80A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kim Phillips , "Peter Zijlstra (Intel)" , Ingo Molnar , Sasha Levin Subject: [PATCH 5.4 15/37] perf/x86/amd/power: Assign pmu.module Date: Fri, 10 Sep 2021 14:30:18 +0200 Message-Id: <20210910122917.674323795@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910122917.149278545@linuxfoundation.org> References: <20210910122917.149278545@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kim Phillips [ Upstream commit ccf26483416a339c114409f6e7cd02abdeaf8052 ] Assign pmu.module so the driver can't be unloaded whilst in use. Signed-off-by: Kim Phillips Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20210817221048.88063-4-kim.phillips@amd.com Signed-off-by: Sasha Levin --- arch/x86/events/amd/power.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/amd/power.c b/arch/x86/events/amd/power.c index abef51320e3a..c4892b7d0c36 100644 --- a/arch/x86/events/amd/power.c +++ b/arch/x86/events/amd/power.c @@ -217,6 +217,7 @@ static struct pmu pmu_class = { .stop = pmu_event_stop, .read = pmu_event_read, .capabilities = PERF_PMU_CAP_NO_EXCLUDE, + .module = THIS_MODULE, }; static int power_cpu_exit(unsigned int cpu) -- 2.30.2