forked from Minki/linux
b73b5c493a
The following commits break cpuidle on SH-Mobile ARM:46bcfad
cpuidle: Single/Global registration of idle statese978aa7
cpuidle: Move dev->last_residency update to driver enter routine; remove dev->last_state This patch remedies these issues by up-porting the SH-Mobile code to fit with the above introduced framework changes. It is worth noting that the new code becomes significantly cleaner, so these framework changes are very welcome. At the same time this breakage could probably have been avoided by grepping for "last_state" and "cpuidle_register_driver". Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
57 lines
2.0 KiB
C
57 lines
2.0 KiB
C
#ifndef __ARCH_MACH_COMMON_H
|
|
#define __ARCH_MACH_COMMON_H
|
|
|
|
extern struct sys_timer shmobile_timer;
|
|
extern void shmobile_setup_console(void);
|
|
extern void shmobile_secondary_vector(void);
|
|
struct clk;
|
|
extern int clk_init(void);
|
|
extern void shmobile_handle_irq_intc(struct pt_regs *);
|
|
extern void shmobile_handle_irq_gic(struct pt_regs *);
|
|
extern struct platform_suspend_ops shmobile_suspend_ops;
|
|
struct cpuidle_driver;
|
|
extern void (*shmobile_cpuidle_modes[])(void);
|
|
extern void (*shmobile_cpuidle_setup)(struct cpuidle_driver *drv);
|
|
|
|
extern void sh7367_init_irq(void);
|
|
extern void sh7367_add_early_devices(void);
|
|
extern void sh7367_add_standard_devices(void);
|
|
extern void sh7367_clock_init(void);
|
|
extern void sh7367_pinmux_init(void);
|
|
extern struct clk sh7367_extalb1_clk;
|
|
extern struct clk sh7367_extal2_clk;
|
|
|
|
extern void sh7377_init_irq(void);
|
|
extern void sh7377_add_early_devices(void);
|
|
extern void sh7377_add_standard_devices(void);
|
|
extern void sh7377_clock_init(void);
|
|
extern void sh7377_pinmux_init(void);
|
|
extern struct clk sh7377_extalc1_clk;
|
|
extern struct clk sh7377_extal2_clk;
|
|
|
|
extern void sh7372_init_irq(void);
|
|
extern void sh7372_add_early_devices(void);
|
|
extern void sh7372_add_standard_devices(void);
|
|
extern void sh7372_clock_init(void);
|
|
extern void sh7372_pinmux_init(void);
|
|
extern void sh7372_pm_init(void);
|
|
extern void sh7372_resume_core_standby_a3sm(void);
|
|
extern int sh7372_do_idle_a3sm(unsigned long unused);
|
|
extern struct clk sh7372_extal1_clk;
|
|
extern struct clk sh7372_extal2_clk;
|
|
|
|
extern void sh73a0_init_irq(void);
|
|
extern void sh73a0_add_early_devices(void);
|
|
extern void sh73a0_add_standard_devices(void);
|
|
extern void sh73a0_clock_init(void);
|
|
extern void sh73a0_pinmux_init(void);
|
|
extern struct clk sh73a0_extal1_clk;
|
|
extern struct clk sh73a0_extal2_clk;
|
|
|
|
extern unsigned int sh73a0_get_core_count(void);
|
|
extern void sh73a0_secondary_init(unsigned int cpu);
|
|
extern int sh73a0_boot_secondary(unsigned int cpu);
|
|
extern void sh73a0_smp_prepare_cpus(void);
|
|
|
|
#endif /* __ARCH_MACH_COMMON_H */
|