Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 1 | /* |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 2 | * Copyright 2007-2009 Analog Devices Inc. |
| 3 | * Philippe Gerum <rpm@xenomai.org> |
Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 4 | * |
Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 5 | * Licensed under the GPL-2 or later. |
Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __ASM_BLACKFIN_CPU_H |
| 9 | #define __ASM_BLACKFIN_CPU_H |
| 10 | |
| 11 | #include <linux/percpu.h> |
| 12 | |
Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 13 | struct blackfin_cpudata { |
| 14 | struct cpu cpu; |
Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 15 | unsigned int imemctl; |
| 16 | unsigned int dmemctl; |
Bob Liu | d0014be | 2011-12-12 11:04:05 +0800 | [diff] [blame] | 17 | #ifdef CONFIG_SMP |
| 18 | struct task_struct *idle; |
| 19 | #endif |
Graf Yang | 6b3087c | 2009-01-07 23:14:39 +0800 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | DECLARE_PER_CPU(struct blackfin_cpudata, cpu_data); |
| 23 | |
| 24 | #endif |