aboutsummaryrefslogtreecommitdiff
path: root/driver/gator_events_irq.c
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2013-01-14 08:34:37 +0000
committerJon Medhurst <tixy@linaro.org>2013-01-15 11:01:37 +0000
commit10443d8e335e2ae4bb73d62f2e60484122fc6769 (patch)
tree8cc885bc69817dac112793467af0e37d7af5298c /driver/gator_events_irq.c
parentee4f56e0d75f42583505dd338d1b91e67ff0ab53 (diff)
gator: Version 5.13DS-5.13
Signed-off-by: Jon Medhurst <tixy@linaro.org>
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;
static DEFINE_PER_CPU(int[TOTALIRQ], irqCnt);
static DEFINE_PER_CPU(int[TOTALIRQ * 2], irqGet);
-GATOR_DEFINE_PROBE(irq_handler_exit, TP_PROTO(int irq,
- struct irqaction *action, int ret))
+GATOR_DEFINE_PROBE(irq_handler_exit,
+ TP_PROTO(int irq, struct irqaction *action, int ret))
{
unsigned long flags;
@@ -71,10 +71,10 @@ static int gator_events_irq_create_files(struct super_block *sb, struct dentry *
return 0;
}
-static int gator_events_irq_online(int** buffer)
+static int gator_events_irq_online(int **buffer)
{
int len = 0, cpu = smp_processor_id();
- unsigned long flags; // not necessary as we are in interrupt context anyway, but doesn't hurt
+ unsigned long flags; // not necessary as we are in interrupt context anyway, but doesn't hurt
// synchronization with the irq_exit functions is not necessary as the values are being reset
if (hardirq_enabled) {
@@ -136,7 +136,7 @@ static void gator_events_irq_stop(void)
static int gator_events_irq_read(int **buffer)
{
- unsigned long flags; // not necessary as we are in interrupt context anyway, but doesn't hurt
+ unsigned long flags; // not necessary as we are in interrupt context anyway, but doesn't hurt
int len, value;
int cpu = smp_processor_id();
@@ -185,4 +185,5 @@ int gator_events_irq_init(void)
return gator_events_install(&gator_events_irq_interface);
}
+
gator_events_init(gator_events_irq_init);