update x-wrt url for backfire
[10.03/openwrt.git] / target / linux / ubicom32 / files / arch / ubicom32 / include / asm / cpu.h
1 /*
2  * arch/ubicom32/include/asm/cpu.h
3  *   CPU definitions for Ubicom32 architecture.
4  *
5  * (C) Copyright 2009, Ubicom, Inc.
6  * Copyright (C) 2004-2005 ARM Ltd.
7  *
8  * This file is part of the Ubicom32 Linux Kernel Port.
9  *
10  * The Ubicom32 Linux Kernel Port is free software: you can redistribute
11  * it and/or modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation, either version 2 of the
13  * License, or (at your option) any later version.
14  *
15  * The Ubicom32 Linux Kernel Port is distributed in the hope that it
16  * will be useful, but WITHOUT ANY WARRANTY; without even the implied
17  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
18  * the GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with the Ubicom32 Linux Kernel Port.  If not,
22  * see <http://www.gnu.org/licenses/>.
23  *
24  * Ubicom32 implementation derived from (with many thanks):
25  *   arch/m68knommu
26  *   arch/blackfin
27  *   arch/parisc
28  */
29 #ifndef _ASM_UBICOM32_CPU_H
30 #define _ASM_UBICOM32_CPU_H
31
32 #include <linux/percpu.h>
33
34 struct cpuinfo_ubicom32 {
35         unsigned long tid;                      /* Hardware thread number */
36
37 #ifdef CONFIG_SMP
38         volatile unsigned long ipi_pending;     /* Bit map of operations to execute */
39         unsigned long ipi_count;                /* Number of IPI(s) taken on this cpu */
40 #endif
41 };
42
43 DECLARE_PER_CPU(struct cpuinfo_ubicom32, cpu_data);
44
45 #endif /* _ASM_UBICOM32_CPU_H */