Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <srinivas.pandruvada@linux.intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Srinivas Pandruvada and committed by
Rafael J. Wysocki
bbfc3349 8e473635

+7
+7
drivers/powercap/idle_inject.c
··· 160 160 WRITE_ONCE(ii_dev->idle_duration_us, idle_duration_us); 161 161 } 162 162 } 163 + EXPORT_SYMBOL_NS_GPL(idle_inject_set_duration, IDLE_INJECT); 163 164 164 165 /** 165 166 * idle_inject_get_duration - idle and run duration retrieval helper ··· 175 174 *run_duration_us = READ_ONCE(ii_dev->run_duration_us); 176 175 *idle_duration_us = READ_ONCE(ii_dev->idle_duration_us); 177 176 } 177 + EXPORT_SYMBOL_NS_GPL(idle_inject_get_duration, IDLE_INJECT); 178 178 179 179 /** 180 180 * idle_inject_set_latency - set the maximum latency allowed ··· 187 185 { 188 186 WRITE_ONCE(ii_dev->latency_us, latency_us); 189 187 } 188 + EXPORT_SYMBOL_NS_GPL(idle_inject_set_latency, IDLE_INJECT); 190 189 191 190 /** 192 191 * idle_inject_start - start idle injections ··· 219 216 220 217 return 0; 221 218 } 219 + EXPORT_SYMBOL_NS_GPL(idle_inject_start, IDLE_INJECT); 222 220 223 221 /** 224 222 * idle_inject_stop - stops idle injections ··· 266 262 267 263 cpu_hotplug_enable(); 268 264 } 265 + EXPORT_SYMBOL_NS_GPL(idle_inject_stop, IDLE_INJECT); 269 266 270 267 /** 271 268 * idle_inject_setup - prepare the current task for idle injection ··· 342 337 343 338 return NULL; 344 339 } 340 + EXPORT_SYMBOL_NS_GPL(idle_inject_register, IDLE_INJECT); 345 341 346 342 /** 347 343 * idle_inject_unregister - unregister idle injection control device ··· 363 357 364 358 kfree(ii_dev); 365 359 } 360 + EXPORT_SYMBOL_NS_GPL(idle_inject_unregister, IDLE_INJECT); 366 361 367 362 static struct smp_hotplug_thread idle_inject_threads = { 368 363 .store = &idle_inject_thread.tsk,