[1/4] perf: Export perf_event_update_userpage

Message ID 20190111033229.14849-1-ike.pan@canonical.com
State New
Headers show
Series
  • Add Cavium ThunderX2 SoC UNCORE PMU driver
Related show

Commit Message

Ike Panhc Jan. 11, 2019, 3:32 a.m.
From: Suzuki K Poulose <suzuki.poulose@arm.com>

BugLink: http://launchpad.net/bugs/1811200

Export perf_event_update_userpage() so that PMU driver using them,
can be built as modules.

Acked-by: Peter Zilstra <peterz@infradead.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 82975c46da8275a2a212cd94049bbef9bb961da2)
Signed-off-by: Ike Panhc <ike.pan@canonical.com>
---
 kernel/events/core.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/kernel/events/core.c b/kernel/events/core.c
index 0041bce2cf99..7eeabaebc225 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -4958,6 +4958,7 @@  void perf_event_update_userpage(struct perf_event *event)
 unlock:
 	rcu_read_unlock();
 }
+EXPORT_SYMBOL_GPL(perf_event_update_userpage);
 
 static int perf_mmap_fault(struct vm_fault *vmf)
 {