/*1* Copyright 2010 Tilera Corporation. All Rights Reserved.2*3* This program is free software; you can redistribute it and/or4* modify it under the terms of the GNU General Public License5* as published by the Free Software Foundation, version 2.6*7* This program is distributed in the hope that it will be useful, but8* WITHOUT ANY WARRANTY; without even the implied warranty of9* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or10* NON INFRINGEMENT. See the GNU General Public License for11* more details.12*/1314#ifndef _ASM_TILE_HARDIRQ_H15#define _ASM_TILE_HARDIRQ_H1617#include <linux/threads.h>18#include <linux/cache.h>1920#include <asm/irq.h>2122typedef struct {23unsigned int __softirq_pending;24long idle_timestamp;2526/* Hard interrupt statistics. */27unsigned int irq_timer_count;28unsigned int irq_syscall_count;29unsigned int irq_resched_count;30unsigned int irq_hv_flush_count;31unsigned int irq_call_count;32unsigned int irq_hv_msg_count;33unsigned int irq_dev_intr_count;3435} ____cacheline_aligned irq_cpustat_t;3637DECLARE_PER_CPU(irq_cpustat_t, irq_stat);3839#define __ARCH_IRQ_STAT40#define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)4142#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */4344#define HARDIRQ_BITS 84546#endif /* _ASM_TILE_HARDIRQ_H */474849