From bcbb9ead971f558d28063b9e357ebb0fd511bcb8 Mon Sep 17 00:00:00 2001 From: Bryan Huntsman Date: Fri, 19 Dec 2014 12:57:55 -0800 Subject: 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 [satyap: trivial merge conflict resolution] Signed-off-by: Satya Durga Srinivasu Prabhala --- include/soc/qcom/core_ctl.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/soc/qcom/core_ctl.h (limited to 'include') 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 -- cgit v1.2.3