1 /* 2 * Copyright 2010 Tilera Corporation. All Rights Reserved. 3 * 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. 7 * 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. 13 */ 14 15 #ifndef _ASM_TILE_HARDIRQ_H 16 #define _ASM_TILE_HARDIRQ_H 17 18 #include <linux/threads.h> 19 #include <linux/cache.h> 20 21 #include <asm/irq.h> 22 23 typedef struct { 24 unsigned int __softirq_pending; 25 long idle_timestamp; 26 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; 35 36 } ____cacheline_aligned irq_cpustat_t; 37 38 DECLARE_PER_CPU(irq_cpustat_t, irq_stat); 39 40 #define __ARCH_IRQ_STAT 41 #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member) 42 43 #include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */ 44 45 #define HARDIRQ_BITS 8 46 47 #endif /* _ASM_TILE_HARDIRQ_H */ 48