Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / tile / include / asm / hardirq.h
blob822390f9a154a620768004d76124d9b7f266add1
1 /*
2 * Copyright 2010 Tilera Corporation. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 * NON INFRINGEMENT. See the GNU General Public License for
12 * more details.
15 #ifndef _ASM_TILE_HARDIRQ_H
16 #define _ASM_TILE_HARDIRQ_H
18 #include <linux/threads.h>
19 #include <linux/cache.h>
21 #include <asm/irq.h>
23 typedef struct {
24 unsigned int __softirq_pending;
25 long idle_timestamp;
27 /* Hard interrupt statistics. */
28 unsigned int irq_timer_count;
29 unsigned int irq_syscall_count;
30 unsigned int irq_resched_count;
31 unsigned int irq_hv_flush_count;
32 unsigned int irq_call_count;
33 unsigned int irq_hv_msg_count;
34 unsigned int irq_dev_intr_count;
36 } ____cacheline_aligned irq_cpustat_t;
38 DECLARE_PER_CPU(irq_cpustat_t, irq_stat);
40 #define __ARCH_IRQ_STAT
41 #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)
43 #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
45 #define HARDIRQ_BITS 8
47 #endif /* _ASM_TILE_HARDIRQ_H */