-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This plugs in support for NMI counting per-CPU via irq_cpustat_t. Modelled after the x86 implementation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
- Loading branch information
Paul Mundt
committed
Oct 14, 2009
1 parent
56bfc42
commit 731ba33
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
#ifndef __ASM_SH_HARDIRQ_H | ||
#define __ASM_SH_HARDIRQ_H | ||
|
||
extern void ack_bad_irq(unsigned int irq); | ||
#define ack_bad_irq ack_bad_irq | ||
#include <linux/threads.h> | ||
#include <linux/irq.h> | ||
|
||
typedef struct { | ||
unsigned int __softirq_pending; | ||
unsigned int __nmi_count; /* arch dependent */ | ||
} ____cacheline_aligned irq_cpustat_t; | ||
|
||
#include <asm-generic/hardirq.h> | ||
#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */ | ||
|
||
extern void ack_bad_irq(unsigned int irq); | ||
|
||
#endif /* __ASM_SH_HARDIRQ_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters