diff mbox series

[RFC,2/3] powercap: idle_inject: Export symbols

Message ID 20210824051731.2495462-3-srinivas.pandruvada@linux.intel.com
State New
Headers show
Series Reuse cpuidle cooling for non DT/ARM | expand

Commit Message

Srinivas Pandruvada Aug. 24, 2021, 5:17 a.m. UTC
Export symbols for interfaces used in other files. In this way the
caller can be a module.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
 drivers/powercap/idle_inject.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c
index 6e1a0043c411..204783dfc432 100644
--- a/drivers/powercap/idle_inject.c
+++ b/drivers/powercap/idle_inject.c
@@ -159,6 +159,7 @@  void idle_inject_set_duration(struct idle_inject_device *ii_dev,
 		WRITE_ONCE(ii_dev->idle_duration_us, idle_duration_us);
 	}
 }
+EXPORT_SYMBOL_GPL(idle_inject_set_duration);
 
 /**
  * idle_inject_get_duration - idle and run duration retrieval helper
@@ -182,6 +183,7 @@  void idle_inject_set_latency(struct idle_inject_device *ii_dev,
 {
 	WRITE_ONCE(ii_dev->latency_us, latency_us);
 }
+EXPORT_SYMBOL(idle_inject_set_latency);
 
 /**
  * idle_inject_start - start idle injections
@@ -334,6 +336,7 @@  struct idle_inject_device *idle_inject_register(struct cpumask *cpumask)
 
 	return NULL;
 }
+EXPORT_SYMBOL_GPL(idle_inject_register);
 
 /**
  * idle_inject_unregister - unregister idle injection control device
@@ -354,6 +357,7 @@  void idle_inject_unregister(struct idle_inject_device *ii_dev)
 
 	kfree(ii_dev);
 }
+EXPORT_SYMBOL_GPL(idle_inject_unregister);
 
 static struct smp_hotplug_thread idle_inject_threads = {
 	.store = &idle_inject_thread.tsk,