mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
FROMLIST: cpuidle: governor: export cpuidle governor functions
Commit 83788c0cae ("cpuidle: remove unused exports") removed
capability of registering cpuidle governors, which was unused at that
time. By exporting the symbol, let's allow platform specific modules to
register cpuidle governors and use cpuidle_governor_latency_req() to get
the QoS for the CPU.
Bug: 169136276
Link: https://lore.kernel.org/linux-pm/010101746fc98add-45e77496-d2d6-4bc1-a1ce-0692599a9a7a-000000@us-west-2.amazonses.com/
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Change-Id: Ifa91576af0a3ae92ce9b216cb67728f037546c5b
This commit is contained in:
@@ -102,6 +102,7 @@ int cpuidle_register_governor(struct cpuidle_governor *gov)
|
||||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpuidle_register_governor);
|
||||
|
||||
/**
|
||||
* cpuidle_governor_latency_req - Compute a latency constraint for CPU
|
||||
@@ -118,3 +119,4 @@ s64 cpuidle_governor_latency_req(unsigned int cpu)
|
||||
|
||||
return (s64)device_req * NSEC_PER_USEC;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpuidle_governor_latency_req);
|
||||
|
||||
Reference in New Issue
Block a user