Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370638
b: refs/heads/master
c: 5db9f43
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Lezcano authored and Kukjin Kim committed Apr 9, 2013
1 parent 0e50dff commit ed19ef1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2eb89f893e44b1a9f48fa1cb6aa5e0d18ed66bb5
refs/heads/master: 5db9f436213d81f053e3f6d69d367637b02fe95e
15 changes: 10 additions & 5 deletions trunk/arch/arm/mach-exynos/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,17 @@ static void __init exynos5_core_down_clk(void)

static int __init exynos4_init_cpuidle(void)
{
int cpu_id;
int cpu_id, ret;
struct cpuidle_device *device;

if (soc_is_exynos5250())
exynos5_core_down_clk();

cpuidle_register_driver(&exynos4_idle_driver);
ret = cpuidle_register_driver(&exynos4_idle_driver);
if (ret) {
printk(KERN_ERR "CPUidle failed to register driver\n");
return ret;
}

for_each_cpu(cpu_id, cpu_online_mask) {
device = &per_cpu(exynos4_cpuidle_device, cpu_id);
Expand All @@ -210,9 +214,10 @@ static int __init exynos4_init_cpuidle(void)
if (cpu_id != 0)
device->state_count = 1;

if (cpuidle_register_device(device)) {
printk(KERN_ERR "CPUidle register device failed\n,");
return -EIO;
ret = cpuidle_register_device(device);
if (ret) {
printk(KERN_ERR "CPUidle register device failed\n");
return ret;
}
}

Expand Down

0 comments on commit ed19ef1

Please sign in to comment.