blob: fadfa82f93b2d11c3ffa3cbfa9324a10c4b94261 [file] [log] [blame]
Graf Yang6b3087c2009-01-07 23:14:39 +08001/*
2 * File: arch/blackfin/include/asm/cpu.h.
3 * Author: Philippe Gerum <rpm@xenomai.org>
4 *
5 * Copyright 2007 Analog Devices Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, see the file COPYING, or write
19 * to the Free Software Foundation, Inc.,
20 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23#ifndef __ASM_BLACKFIN_CPU_H
24#define __ASM_BLACKFIN_CPU_H
25
26#include <linux/percpu.h>
27
28struct task_struct;
29
30struct blackfin_cpudata {
31 struct cpu cpu;
32 struct task_struct *idle;
Graf Yang6b3087c2009-01-07 23:14:39 +080033 unsigned int imemctl;
34 unsigned int dmemctl;
Graf Yang6b3087c2009-01-07 23:14:39 +080035 unsigned long dcache_invld_count;
Sonic Zhang47e9ded2009-06-10 08:57:08 +000036 unsigned long icache_invld_count;
Graf Yang6b3087c2009-01-07 23:14:39 +080037};
38
39DECLARE_PER_CPU(struct blackfin_cpudata, cpu_data);
40
41#endif