cpuidle44xx.c (1304a7343b30fc4f16045412efdbb4179a3d9255) | cpuidle44xx.c (c7a9b09b1a4a1fbccb2ec409daec95f9068d77c0) |
---|---|
1/* 2 * OMAP4 CPU idle Routines 3 * 4 * Copyright (C) 2011 Texas Instruments, Inc. 5 * Santosh Shilimkar <santosh.shilimkar@ti.com> 6 * Rajendra Nayak <rnayak@ti.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 224 unchanged lines hidden (view full) --- 233 return -ENODEV; 234 235 /* Configure the broadcast timer on each cpu */ 236 on_each_cpu(omap_setup_broadcast_timer, NULL, 1); 237 238 for_each_cpu(cpu_id, cpu_online_mask) { 239 dev = &per_cpu(omap4_idle_dev, cpu_id); 240 dev->cpu = cpu_id; | 1/* 2 * OMAP4 CPU idle Routines 3 * 4 * Copyright (C) 2011 Texas Instruments, Inc. 5 * Santosh Shilimkar <santosh.shilimkar@ti.com> 6 * Rajendra Nayak <rnayak@ti.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 224 unchanged lines hidden (view full) --- 233 return -ENODEV; 234 235 /* Configure the broadcast timer on each cpu */ 236 on_each_cpu(omap_setup_broadcast_timer, NULL, 1); 237 238 for_each_cpu(cpu_id, cpu_online_mask) { 239 dev = &per_cpu(omap4_idle_dev, cpu_id); 240 dev->cpu = cpu_id; |
241#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED |
|
241 dev->coupled_cpus = *cpu_online_mask; | 242 dev->coupled_cpus = *cpu_online_mask; |
242 | 243#endif |
243 cpuidle_register_driver(&omap4_idle_driver); 244 245 if (cpuidle_register_device(dev)) { 246 pr_err("%s: CPUidle register failed\n", __func__); 247 return -EIO; 248 } 249 } 250 251 return 0; 252} | 244 cpuidle_register_driver(&omap4_idle_driver); 245 246 if (cpuidle_register_device(dev)) { 247 pr_err("%s: CPUidle register failed\n", __func__); 248 return -EIO; 249 } 250 } 251 252 return 0; 253} |