summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2006-08-12 20:40:58 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2006-08-12 20:40:58 +0000
commitbde3d8a537bf54398d50b4a39995521267472a9b (patch)
treef43050af0569a9125ef284064ce2df1007a44593 /module
parentc2f754dfb6b14cd7ca804a1da305a64bdb1c6a53 (diff)
Some formatting fixes.
Sat Aug 12 16:40:38 2006 Søren Sandmann <sandmann@redhat.com> * module/sysprof-module.c: Some formatting fixes.
Diffstat (limited to 'module')
-rw-r--r--module/sysprof-module.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/sysprof-module.c b/module/sysprof-module.c
index 0ab68dc..d4f30b4 100644
--- a/module/sysprof-module.c
+++ b/module/sysprof-module.c
@@ -107,7 +107,7 @@ read_frame (void *frame_pointer, StackFrame *frame)
return 0;
}
-DEFINE_PER_CPU (int, n_samples);
+DEFINE_PER_CPU(int, n_samples);
#ifdef OLD_PROFILE
static int timer_notify(struct notifier_block * self, unsigned long val, void * data)
@@ -127,12 +127,12 @@ timer_notify (struct pt_regs *regs)
int result;
static atomic_t in_timer_notify = ATOMIC_INIT(1);
- /* 0: locked, 1: unlocked */
-
if (((++get_cpu_var(n_samples)) % INTERVAL) != 0)
return 0;
- if (!atomic_dec_and_test (&in_timer_notify))
+ /* 0: locked, 1: unlocked */
+
+ if (!atomic_dec_and_test(&in_timer_notify))
goto out;
is_user = user_mode(regs);
@@ -179,7 +179,7 @@ timer_notify (struct pt_regs *regs)
wake_up (&wait_for_trace);
out:
- atomic_inc (&in_timer_notify);
+ atomic_inc(&in_timer_notify);
return 0;
}