summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'driver/gator_events_irq.c')
-rw-r--r--driver/gator_events_irq.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/driver/gator_events_irq.c b/driver/gator_events_irq.c
index 435bc86..1221372 100644
--- a/driver/gator_events_irq.c
+++ b/driver/gator_events_irq.c
@@ -21,8 +21,8 @@ static ulong softirq_key;
21static DEFINE_PER_CPU(int[TOTALIRQ], irqCnt); 21static DEFINE_PER_CPU(int[TOTALIRQ], irqCnt);
22static DEFINE_PER_CPU(int[TOTALIRQ * 2], irqGet); 22static DEFINE_PER_CPU(int[TOTALIRQ * 2], irqGet);
23 23
24GATOR_DEFINE_PROBE(irq_handler_exit, TP_PROTO(int irq, 24GATOR_DEFINE_PROBE(irq_handler_exit,
25 struct irqaction *action, int ret)) 25 TP_PROTO(int irq, struct irqaction *action, int ret))
26{ 26{
27 unsigned long flags; 27 unsigned long flags;
28 28
@@ -71,10 +71,10 @@ static int gator_events_irq_create_files(struct super_block *sb, struct dentry *
71 return 0; 71 return 0;
72} 72}
73 73
74static int gator_events_irq_online(int** buffer) 74static int gator_events_irq_online(int **buffer)
75{ 75{
76 int len = 0, cpu = smp_processor_id(); 76 int len = 0, cpu = smp_processor_id();
77 unsigned long flags; // not necessary as we are in interrupt context anyway, but doesn't hurt 77 unsigned long flags; // not necessary as we are in interrupt context anyway, but doesn't hurt
78 78
79 // synchronization with the irq_exit functions is not necessary as the values are being reset 79 // synchronization with the irq_exit functions is not necessary as the values are being reset
80 if (hardirq_enabled) { 80 if (hardirq_enabled) {
@@ -136,7 +136,7 @@ static void gator_events_irq_stop(void)
136 136
137static int gator_events_irq_read(int **buffer) 137static int gator_events_irq_read(int **buffer)
138{ 138{
139 unsigned long flags; // not necessary as we are in interrupt context anyway, but doesn't hurt 139 unsigned long flags; // not necessary as we are in interrupt context anyway, but doesn't hurt
140 int len, value; 140 int len, value;
141 int cpu = smp_processor_id(); 141 int cpu = smp_processor_id();
142 142
@@ -185,4 +185,5 @@ int gator_events_irq_init(void)
185 185
186 return gator_events_install(&gator_events_irq_interface); 186 return gator_events_install(&gator_events_irq_interface);
187} 187}
188
188gator_events_init(gator_events_irq_init); 189gator_events_init(gator_events_irq_init);