Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2007-2008 Analog Devices Inc. |
| 3 | * |
| 4 | * Licensed under the GPL-2 or later. |
| 5 | */ |
| 6 | |
Graf Yang | c51b448 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 7 | #ifndef _MACH_BF561_SMP |
| 8 | #define _MACH_BF561_SMP |
| 9 | |
Graf Yang | 75734e6 | 2009-09-21 11:51:31 +0000 | [diff] [blame] | 10 | /* This header has to stand alone to avoid circular deps */ |
| 11 | |
Graf Yang | c51b448 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 12 | struct task_struct; |
| 13 | |
| 14 | void platform_init_cpus(void); |
| 15 | |
| 16 | void platform_prepare_cpus(unsigned int max_cpus); |
| 17 | |
| 18 | int platform_boot_secondary(unsigned int cpu, struct task_struct *idle); |
| 19 | |
| 20 | void platform_secondary_init(unsigned int cpu); |
| 21 | |
Yi Li | 73a4006 | 2009-12-17 08:20:32 +0000 | [diff] [blame] | 22 | void platform_request_ipi(int irq, /*irq_handler_t*/ void *handler); |
Graf Yang | c51b448 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 23 | |
Yi Li | 73a4006 | 2009-12-17 08:20:32 +0000 | [diff] [blame] | 24 | void platform_send_ipi(cpumask_t callmap, int irq); |
Graf Yang | c51b448 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 25 | |
Yi Li | 73a4006 | 2009-12-17 08:20:32 +0000 | [diff] [blame] | 26 | void platform_send_ipi_cpu(unsigned int cpu, int irq); |
Graf Yang | c51b448 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 27 | |
Yi Li | 73a4006 | 2009-12-17 08:20:32 +0000 | [diff] [blame] | 28 | void platform_clear_ipi(unsigned int cpu, int irq); |
Graf Yang | c51b448 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 29 | |
Yi Li | 0d152c2 | 2009-12-28 10:21:49 +0000 | [diff] [blame] | 30 | void bfin_local_timer_setup(void); |
| 31 | |
Graf Yang | c51b448 | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 32 | #endif /* !_MACH_BF561_SMP */ |