diff options
author | Robert Love <rml@novell.com> | 2005-10-10 17:01:57 +0000 |
---|---|---|
committer | Robert Love <rml@src.gnome.org> | 2005-10-10 17:01:57 +0000 |
commit | 58073ffba8d6fac562f1b3bed6367990173e7346 (patch) | |
tree | 42b1210f45b4a9c4085a8a32fdbb18d2760dc008 /module | |
parent | 89439e45f64a81e8aaa34b8396181a40ec1c961f (diff) |
Don't use INTERVAL or SAMPLES_PER_SECOND now that we use
Mon Oct 10 13:00:20 2005 Robert Love <rml@novell.com>
* module/sysprof-module.c: Don't use INTERVAL or SAMPLES_PER_SECOND
now that we use register_timer_hook(), which hits off the timer
interrupt at HZ freqency (1/250 second on x86).
Diffstat (limited to 'module')
-rw-r--r-- | module/sysprof-module.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/module/sysprof-module.c b/module/sysprof-module.c index 3c26822..d0d91df 100644 --- a/module/sysprof-module.c +++ b/module/sysprof-module.c @@ -49,8 +49,6 @@ MODULE_LICENSE("GPL"); MODULE_AUTHOR("Soeren Sandmann (sandmann@daimi.au.dk)"); -#define SAMPLES_PER_SECOND (200) -#define INTERVAL (HZ / SAMPLES_PER_SECOND) #define N_TRACES 256 static SysprofStackTrace stack_traces[N_TRACES]; @@ -447,9 +445,6 @@ timer_notify (struct pt_regs *regs) int i; int is_user; - if ((n_samples++ % INTERVAL) != 0) - return 0; - is_user = user_mode(regs); if (!current || current->pid == 0 || !current->mm) |