[RFC PATCH 1/2] PM: EM: Export em_table_alloc/free

From: Xuewen Yan

Date: Fri Jul 10 2026 - 04:37:56 EST


When drivers wants to alloc a new em_perf_table to update
their em_perf_table, they need to use em_table_alloc and
em_table_free.
So export the two func.

Signed-off-by: Xuewen Yan <xuewen.yan@xxxxxxxxxx>
---
kernel/power/energy_model.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kernel/power/energy_model.c b/kernel/power/energy_model.c
index e610cf8e9a06..277aaf1b19da 100644
--- a/kernel/power/energy_model.c
+++ b/kernel/power/energy_model.c
@@ -201,6 +201,7 @@ void em_table_free(struct em_perf_table *table)
{
kref_put(&table->kref, em_release_table_kref);
}
+EXPORT_SYMBOL_GPL(em_table_free);

/**
* em_table_alloc() - Allocate a new EM table
@@ -225,6 +226,7 @@ struct em_perf_table *em_table_alloc(struct em_perf_domain *pd)

return table;
}
+EXPORT_SYMBOL_GPL(em_table_alloc);

static void em_init_performance(struct device *dev, struct em_perf_domain *pd,
struct em_perf_state *table, int nr_states)
--
2.25.1