diff options
| author | Kaan Külahlı <kaankulahli@gmail.com> | 2017-05-25 19:54:16 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-25 19:54:16 +0300 |
| commit | 943acc22babac805296a8d6de42f424f8c00df5a (patch) | |
| tree | b710cb20d9b8c1e50a7705564ed08a968eb4c163 /drivers/soc/qcom/core_ctl_helper.c | |
| parent | 6f93f25b482cb3833bad393a2f4cde8a0d1a69ca (diff) | |
| parent | 14f0a97da192d0cf20ae234389925827d9c2c119 (diff) | |
pull request
Diffstat (limited to 'drivers/soc/qcom/core_ctl_helper.c')
| -rw-r--r-- | drivers/soc/qcom/core_ctl_helper.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/drivers/soc/qcom/core_ctl_helper.c b/drivers/soc/qcom/core_ctl_helper.c deleted file mode 100644 index 3b25d9811cf..00000000000 --- a/drivers/soc/qcom/core_ctl_helper.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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. - */ - -#include <linux/cpu.h> -#include <linux/cpufreq.h> -#include <linux/ktime.h> -#include <linux/hrtimer.h> -#include <linux/module.h> -#include <linux/init.h> -#include <soc/qcom/core_ctl.h> - -void core_ctl_block_hotplug(void) -{ - get_online_cpus(); -} -EXPORT_SYMBOL(core_ctl_block_hotplug); - -void core_ctl_unblock_hotplug(void) -{ - put_online_cpus(); -} -EXPORT_SYMBOL(core_ctl_unblock_hotplug); - -s64 core_ctl_get_time(void) -{ - return ktime_to_ms(ktime_get()); -} -EXPORT_SYMBOL(core_ctl_get_time); - -struct cpufreq_policy *core_ctl_get_policy(int cpu) -{ - return cpufreq_cpu_get(cpu); -} -EXPORT_SYMBOL(core_ctl_get_policy); - -void core_ctl_put_policy(struct cpufreq_policy *policy) -{ - cpufreq_cpu_put(policy); -} -EXPORT_SYMBOL(core_ctl_put_policy); - -struct device *core_ctl_find_cpu_device(unsigned cpu) -{ - return get_cpu_device(cpu); -} -EXPORT_SYMBOL(core_ctl_find_cpu_device); - -int __ref core_ctl_online_core(unsigned int cpu) -{ - return cpu_up(cpu); -} -EXPORT_SYMBOL(core_ctl_online_core); |
