drivers: samsung: exynos-cpupm.c: Fully nuke cpupm_debug_info
This commit is contained in:
parent
8e2888567b
commit
94813c91ed
1 changed files with 0 additions and 55 deletions
|
@ -190,58 +190,6 @@ static struct delayed_work deferred_work;
|
|||
|
||||
static void do_nothing(void *unused) { }
|
||||
|
||||
/******************************************************************************
|
||||
* CPUPM Debug *
|
||||
******************************************************************************/
|
||||
#ifdef CONFIG_EXYNOS_DEBUG_INFO
|
||||
#define DEBUG_INFO_BUF_SIZE 1000
|
||||
struct cpupm_debug_info {
|
||||
int cpu;
|
||||
u64 time;
|
||||
int event;
|
||||
};
|
||||
|
||||
static struct cpupm_debug_info *cpupm_debug_info;
|
||||
static int cpupm_debug_info_index;
|
||||
|
||||
static void cpupm_debug(int cpu, int state, int mode_type, int action)
|
||||
{
|
||||
int i, event = -1;
|
||||
|
||||
if (unlikely(!cpupm_debug_info))
|
||||
return;
|
||||
|
||||
cpupm_debug_info_index++;
|
||||
if (cpupm_debug_info_index >= DEBUG_INFO_BUF_SIZE)
|
||||
cpupm_debug_info_index = 0;
|
||||
|
||||
i = cpupm_debug_info_index;
|
||||
|
||||
cpupm_debug_info[i].cpu = cpu;
|
||||
cpupm_debug_info[i].time = ktime_get(cpu);
|
||||
|
||||
if (state > 0) {
|
||||
event = action ? C2_ENTER : C2_EXIT;
|
||||
goto out;
|
||||
}
|
||||
|
||||
switch (mode_type) {
|
||||
case POWERMODE_TYPE_CLUSTER:
|
||||
event = action ? CPD_ENTER : CPD_EXIT;
|
||||
break;
|
||||
case POWERMODE_TYPE_DSU:
|
||||
event = action ? DSUPD_ENTER : DSUPD_EXIT;
|
||||
break;
|
||||
case POWERMODE_TYPE_SYSTEM:
|
||||
event = action ? SICD_ENTER : SICD_EXIT;
|
||||
break;
|
||||
}
|
||||
|
||||
out:
|
||||
cpupm_debug_info[i].event = event;
|
||||
}
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
* Notifier *
|
||||
******************************************************************************/
|
||||
|
@ -1812,9 +1760,6 @@ static int exynos_cpupm_probe(struct platform_device *pdev)
|
|||
|
||||
spin_lock_init(&cpupm_lock);
|
||||
|
||||
cpupm_debug_info = kzalloc(sizeof(struct cpupm_debug_info)
|
||||
* DEBUG_INFO_BUF_SIZE, GFP_KERNEL);
|
||||
|
||||
register_vendor_hooks();
|
||||
|
||||
notify_cpupm_init_to_el3(pdev);
|
||||
|
|
Loading…
Reference in a new issue