cpufreq_stats.c (3a3e9e06d0c11b8efa95933a88c9e67209fa4330) cpufreq_stats.c (d5b73cd870e2b049ef566aec2791dbf5fd26a7ec)
1/*
2 * drivers/cpufreq/cpufreq_stats.c
3 *
4 * Copyright (C) 2003-2004 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>.
5 * (C) 2004 Zou Nan hai <nanhai.zou@intel.com>.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 184 unchanged lines hidden (view full) ---

193{
194 unsigned int i, j, count = 0, ret = 0;
195 struct cpufreq_stats *stat;
196 struct cpufreq_policy *current_policy;
197 unsigned int alloc_size;
198 unsigned int cpu = policy->cpu;
199 if (per_cpu(cpufreq_stats_table, cpu))
200 return -EBUSY;
1/*
2 * drivers/cpufreq/cpufreq_stats.c
3 *
4 * Copyright (C) 2003-2004 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>.
5 * (C) 2004 Zou Nan hai <nanhai.zou@intel.com>.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 184 unchanged lines hidden (view full) ---

193{
194 unsigned int i, j, count = 0, ret = 0;
195 struct cpufreq_stats *stat;
196 struct cpufreq_policy *current_policy;
197 unsigned int alloc_size;
198 unsigned int cpu = policy->cpu;
199 if (per_cpu(cpufreq_stats_table, cpu))
200 return -EBUSY;
201 stat = kzalloc(sizeof(struct cpufreq_stats), GFP_KERNEL);
201 stat = kzalloc(sizeof(*stat), GFP_KERNEL);
202 if ((stat) == NULL)
203 return -ENOMEM;
204
205 current_policy = cpufreq_cpu_get(cpu);
206 if (current_policy == NULL) {
207 ret = -EINVAL;
208 goto error_get_fail;
209 }

--- 206 unchanged lines hidden ---
202 if ((stat) == NULL)
203 return -ENOMEM;
204
205 current_policy = cpufreq_cpu_get(cpu);
206 if (current_policy == NULL) {
207 ret = -EINVAL;
208 goto error_get_fail;
209 }

--- 206 unchanged lines hidden ---