Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1704629pxb; Mon, 23 Aug 2021 02:34:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ5s0LMLGaA88dggsQpSbZ0LHRhgaIw2Y4npV5a4oH9fHbf38v6oAxnm2jpwu2j5L4n++s X-Received: by 2002:a92:4453:: with SMTP id a19mr21902971ilm.221.1629711272535; Mon, 23 Aug 2021 02:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629711272; cv=none; d=google.com; s=arc-20160816; b=VAeD/lo0y7lufeEBIZhF96vQdDs2SITE5Mm+kw2x6/pi+1lzAsUrOcz1vxZyZo2jW+ RH18JTbhVRdMsqznpQJkkqMPzBFc8EW73dL4YzXMfHmkIICZKq1REf0pgnDwlF9awBr6 MUp9YQZTC2bscc+XgN/wyELAtFwnjgC2AzES611W7QP0bl4CfoPD2qAoSuEd3ZZc8CIZ 66sqtuKKce1xcxe8g+HDppvFbTV5mOBCvHz8tzMlQEbjsqkVeazCbHpCOKymEfFXWkeg Zn6HZ1fgIc7RzGEJfiN3crfKdeUAgSQgqoeps9nGPspk9xesdB+pKmSgkij06KlISNyl QsnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=dUq9xCygggOTFb6UxVPlBq454KbJy1bwYVtsXOM120k=; b=pNXKmcp6AeufH6MSGwLPZOU0TFraHkVQNKkdc9EROse9+/ma7qn9XAH6F7VfV0bK8q KqmS7XVq7RD9lfUeOKpFXKi3sIBAnjgDvyEhNPEaQ6dQoOj86ZSqmAw+318PMLoj04he ecpWIQMGz7HjEPXDo/EOfgi/BOOQFwVyWsKMbM0Z7LwqDdnBwus+8I6KSGUKFSXb0X7N OSGiAVbl9K0Q/P0K/oKP1MWZosGCewsNybKjUOuQjwWGnqGRI7cJF1lABUXE1irisunC bqw3PP+pDhn1UOm2nAJefBqmuTA47lMPvtrgbIzTNW54MF5cc2mhfbEMERWDxvqLrh4M pMrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="Je/ftLRe"; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si16930240jat.54.2021.08.23.02.34.21; Mon, 23 Aug 2021 02:34:32 -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=@linutronix.de header.s=2020 header.b="Je/ftLRe"; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236041AbhHWJdm (ORCPT + 99 others); Mon, 23 Aug 2021 05:33:42 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:39208 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235925AbhHWJdb (ORCPT ); Mon, 23 Aug 2021 05:33:31 -0400 Date: Mon, 23 Aug 2021 09:32:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1629711168; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dUq9xCygggOTFb6UxVPlBq454KbJy1bwYVtsXOM120k=; b=Je/ftLReeGvyIZdfBiFA84kPhuoBnvJAOqDbFtG2k5yeOyLUHLndPQUR5LEBBkEKq/RbFs jqapOoo0IdFP+FkbOmZ24Zg8x0ThT0di6ikB8xplSkT7H0rkFY6mIQVUacaG3F4jfHYS7c 9f45wp0uiICvneZMfAl00AhtZ8hPJzxKOhci0JibQ69A6ee5ILLjN2kXMGVVNF5nIkIpT3 Gtj3g4pHz5EjCzDVyUuAp0YVFqSKzit8AY7O+zwdIiiZbHz7SxyhIf2YbngHVDynSlvuha VoVMaXfAbWT5xkp0Euzw05x6V8YP+URhBpkFheRzAxf/dVMy5S4Hp9m0egFcDg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1629711168; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dUq9xCygggOTFb6UxVPlBq454KbJy1bwYVtsXOM120k=; b=XQAHdPgY6gULhaAjww3ODtBcckhGaFI+vWKJyfZVKyzeWmQ2QBKg0GtRjsFULYhbGWGAMJ 53yLEhyQc8SFgPAg== From: "tip-bot2 for Kim Phillips" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/x86/amd/power: Assign pmu.module Cc: Kim Phillips , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210817221048.88063-4-kim.phillips@amd.com> References: <20210817221048.88063-4-kim.phillips@amd.com> MIME-Version: 1.0 Message-ID: <162971116730.25758.1147991214565796429.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: b159f2ed7a712ae24b22414cda22ed93db7033bb Gitweb: https://git.kernel.org/tip/b159f2ed7a712ae24b22414cda22ed93db7033bb Author: Kim Phillips AuthorDate: Tue, 17 Aug 2021 17:10:43 -05:00 Committer: Peter Zijlstra CommitterDate: Fri, 20 Aug 2021 12:33:12 +02:00 perf/x86/amd/power: Assign pmu.module Assign pmu.module so the driver can't be unloaded whilst in use. Signed-off-by: Kim Phillips Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20210817221048.88063-4-kim.phillips@amd.com --- 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 16a2369..37d5b38 100644 --- a/arch/x86/events/amd/power.c +++ b/arch/x86/events/amd/power.c @@ -213,6 +213,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)