diff options
author | Bryan Huntsman <bryanh@codeaurora.org> | 2014-12-19 12:57:55 -0800 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:10:43 -0700 |
commit | bcbb9ead971f558d28063b9e357ebb0fd511bcb8 (patch) | |
tree | c83066c11d3bb53637733771b44b44c73cfba1b9 /include/soc | |
parent | 3165bb66bfe45829698400b4953f54e868045975 (diff) |
qcom: core_ctl: Add support functions for core control
Add support functions for core control driver. Also introduce
Kconfig for enabling core control.
Change-Id: Ic127b6ed7d9450338883b13d9c42abfe49ff8b35
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
[satyap: trivial merge conflict resolution]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/qcom/core_ctl.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/soc/qcom/core_ctl.h b/include/soc/qcom/core_ctl.h new file mode 100644 index 000000000000..01f55e53cd47 --- /dev/null +++ b/include/soc/qcom/core_ctl.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2014, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __SOC_QCOM_CORE_CTL_H +#define __SOC_QCOM_CORE_CTL_H + +extern void core_ctl_block_hotplug(void); +extern void core_ctl_unblock_hotplug(void); +extern s64 core_ctl_get_time(void); +extern struct cpufreq_policy *core_ctl_get_policy(int cpu); +extern void core_ctl_put_policy(struct cpufreq_policy *policy); +extern struct device *core_ctl_find_cpu_device(unsigned cpu); +extern int core_ctl_online_core(unsigned int cpu); + +#endif |