Skip to content

Commit

Permalink
cpufreq: export sched_set_itmt_support and sched_set_itmt_core_prio
Browse files Browse the repository at this point in the history
When "CONFIG_X86_ACPI_CPUFREQ" in the config is modified to "m",
there will be compilation errors:
ERROR: modpost: "sched_set_itmt_core_prio" [drivers/cpufreq/acpi-cpufreq.ko] undefined!
ERROR: modpost: "sched_set_itmt_support" [drivers/cpufreq/acpi-cpufreq.ko] undefined!
Therefore, it is necessary to export sched_set_itmt_support and
sched_set_itmt_core_prio.

Signed-off-by: LeoLiu-oc <leoliu-oc@zhaoxin.com>
  • Loading branch information
leoliu-oc committed Jan 10, 2025
1 parent 34aa3d7 commit 53d5f3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/itmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ int sched_set_itmt_support(void)

return 0;
}
EXPORT_SYMBOL(sched_set_itmt_support);

/**
* sched_clear_itmt_support() - Revoke platform's support of ITMT
Expand Down Expand Up @@ -181,3 +182,4 @@ void sched_set_itmt_core_prio(int prio, int cpu)
{
per_cpu(sched_core_priority, cpu) = prio;
}
EXPORT_SYMBOL(sched_set_itmt_core_prio);

0 comments on commit 53d5f3b

Please sign in to comment.