mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
s390/idle: Add missing EXPORT_SYMBOL_GPL()
Uwe Kleine-König reported this build breakage caused by a recent commit
which provides arch specific kcpustat_field_idle()/kcpustat_field_iowait()
functions:
ERROR: modpost: "arch_kcpustat_field_idle" [drivers/leds/trigger/ledtrig-activity.ko] undefined!
ERROR: modpost: "arch_kcpustat_field_iowait" [drivers/leds/trigger/ledtrig-activity.ko] undefined!
Fix this by adding the missing EXPORT_SYMBOL_GPL().
Fixes: 670e057744 ("s390/idle: Provide arch specific kcpustat_field_idle()/kcpustat_field_iowait()")
Reported-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Closes: https://lore.kernel.org/r/ajKsG0JP6qTssQBX@monoceros
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Tested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
parent
28da1cce9e
commit
6938846872
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/notifier.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/cpu.h>
|
||||
#include <linux/export.h>
|
||||
#include <trace/events/power.h>
|
||||
#include <asm/cpu_mf.h>
|
||||
#include <asm/cputime.h>
|
||||
|
|
@ -83,11 +84,13 @@ u64 arch_kcpustat_field_idle(int cpu)
|
|||
{
|
||||
return arch_cpu_idle_time(cpu, CPUTIME_IDLE, !nr_iowait_cpu(cpu));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(arch_kcpustat_field_idle);
|
||||
|
||||
u64 arch_kcpustat_field_iowait(int cpu)
|
||||
{
|
||||
return arch_cpu_idle_time(cpu, CPUTIME_IOWAIT, nr_iowait_cpu(cpu));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(arch_kcpustat_field_iowait);
|
||||
|
||||
void account_idle_time_irq(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user