Skip to content

Commit bbfc334

Browse files
spandruvadarafaeljw
authored andcommitted
powercap: idle_inject: Export symbols
Export symbols for external interfaces, so that they can be used in other loadable modules. Export is done under name space IDLE_INJECT. Signed-off-by: Srinivas Pandruvada <[email protected]> Acked-by: Daniel Lezcano <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 8e47363 commit bbfc334

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/powercap/idle_inject.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ void idle_inject_set_duration(struct idle_inject_device *ii_dev,
160160
WRITE_ONCE(ii_dev->idle_duration_us, idle_duration_us);
161161
}
162162
}
163+
EXPORT_SYMBOL_NS_GPL(idle_inject_set_duration, IDLE_INJECT);
163164

164165
/**
165166
* idle_inject_get_duration - idle and run duration retrieval helper
@@ -174,6 +175,7 @@ void idle_inject_get_duration(struct idle_inject_device *ii_dev,
174175
*run_duration_us = READ_ONCE(ii_dev->run_duration_us);
175176
*idle_duration_us = READ_ONCE(ii_dev->idle_duration_us);
176177
}
178+
EXPORT_SYMBOL_NS_GPL(idle_inject_get_duration, IDLE_INJECT);
177179

178180
/**
179181
* idle_inject_set_latency - set the maximum latency allowed
@@ -185,6 +187,7 @@ void idle_inject_set_latency(struct idle_inject_device *ii_dev,
185187
{
186188
WRITE_ONCE(ii_dev->latency_us, latency_us);
187189
}
190+
EXPORT_SYMBOL_NS_GPL(idle_inject_set_latency, IDLE_INJECT);
188191

189192
/**
190193
* idle_inject_start - start idle injections
@@ -216,6 +219,7 @@ int idle_inject_start(struct idle_inject_device *ii_dev)
216219

217220
return 0;
218221
}
222+
EXPORT_SYMBOL_NS_GPL(idle_inject_start, IDLE_INJECT);
219223

220224
/**
221225
* idle_inject_stop - stops idle injections
@@ -262,6 +266,7 @@ void idle_inject_stop(struct idle_inject_device *ii_dev)
262266

263267
cpu_hotplug_enable();
264268
}
269+
EXPORT_SYMBOL_NS_GPL(idle_inject_stop, IDLE_INJECT);
265270

266271
/**
267272
* idle_inject_setup - prepare the current task for idle injection
@@ -337,6 +342,7 @@ struct idle_inject_device *idle_inject_register(struct cpumask *cpumask)
337342

338343
return NULL;
339344
}
345+
EXPORT_SYMBOL_NS_GPL(idle_inject_register, IDLE_INJECT);
340346

341347
/**
342348
* idle_inject_unregister - unregister idle injection control device
@@ -357,6 +363,7 @@ void idle_inject_unregister(struct idle_inject_device *ii_dev)
357363

358364
kfree(ii_dev);
359365
}
366+
EXPORT_SYMBOL_NS_GPL(idle_inject_unregister, IDLE_INJECT);
360367

361368
static struct smp_hotplug_thread idle_inject_threads = {
362369
.store = &idle_inject_thread.tsk,

0 commit comments

Comments
 (0)