diff options
| author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-10-06 11:36:55 -0400 |
|---|---|---|
| committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-10-06 11:36:55 -0400 |
| commit | d94e5fcbf1420366dcb4102bafe04dbcfc0d0d4b (patch) | |
| tree | a9b7de7df6da5c3132cc68169b9c47ba288ccd42 /arch/sparc/oprofile/init.c | |
| parent | d55651168a20078a94597a297d5cdfd807bf07b6 (diff) | |
| parent | 374576a8b6f865022c0fd1ca62396889b23d66dd (diff) | |
Merge commit 'v2.6.32-rc3'
Diffstat (limited to 'arch/sparc/oprofile/init.c')
| -rw-r--r-- | arch/sparc/oprofile/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/oprofile/init.c b/arch/sparc/oprofile/init.c index d172f86439b1..f97cb8b6ee5f 100644 --- a/arch/sparc/oprofile/init.c +++ b/arch/sparc/oprofile/init.c | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | static int profile_timer_exceptions_notify(struct notifier_block *self, | 21 | static int profile_timer_exceptions_notify(struct notifier_block *self, |
| 22 | unsigned long val, void *data) | 22 | unsigned long val, void *data) |
| 23 | { | 23 | { |
| 24 | struct die_args *args = (struct die_args *)data; | 24 | struct die_args *args = data; |
| 25 | int ret = NOTIFY_DONE; | 25 | int ret = NOTIFY_DONE; |
| 26 | 26 | ||
| 27 | switch (val) { | 27 | switch (val) { |
| @@ -57,7 +57,7 @@ static void timer_stop(void) | |||
| 57 | 57 | ||
| 58 | static int op_nmi_timer_init(struct oprofile_operations *ops) | 58 | static int op_nmi_timer_init(struct oprofile_operations *ops) |
| 59 | { | 59 | { |
| 60 | if (!nmi_usable) | 60 | if (atomic_read(&nmi_active) <= 0) |
| 61 | return -ENODEV; | 61 | return -ENODEV; |
| 62 | 62 | ||
| 63 | ops->start = timer_start; | 63 | ops->start = timer_start; |
