diff options
| -rw-r--r-- | arch/Kconfig | 3 | ||||
| -rw-r--r-- | arch/s390/Kconfig | 1 | ||||
| -rw-r--r-- | arch/s390/oprofile/init.c | 6 |
3 files changed, 3 insertions, 7 deletions
diff --git a/arch/Kconfig b/arch/Kconfig index 43abf3c6da8..f78c2be4242 100644 --- a/arch/Kconfig +++ b/arch/Kconfig | |||
| @@ -30,9 +30,6 @@ config OPROFILE_EVENT_MULTIPLEX | |||
| 30 | config HAVE_OPROFILE | 30 | config HAVE_OPROFILE |
| 31 | bool | 31 | bool |
| 32 | 32 | ||
| 33 | config HAVE_HWSAMPLER | ||
| 34 | bool | ||
| 35 | |||
| 36 | config KPROBES | 33 | config KPROBES |
| 37 | bool "Kprobes" | 34 | bool "Kprobes" |
| 38 | depends on MODULES | 35 | depends on MODULES |
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 0cf20adfbb4..ff19efdf6fe 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
| @@ -115,7 +115,6 @@ config S390 | |||
| 115 | select ARCH_INLINE_WRITE_UNLOCK_BH | 115 | select ARCH_INLINE_WRITE_UNLOCK_BH |
| 116 | select ARCH_INLINE_WRITE_UNLOCK_IRQ | 116 | select ARCH_INLINE_WRITE_UNLOCK_IRQ |
| 117 | select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE | 117 | select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE |
| 118 | select HAVE_HWSAMPLER | ||
| 119 | 118 | ||
| 120 | config SCHED_OMIT_FRAME_POINTER | 119 | config SCHED_OMIT_FRAME_POINTER |
| 121 | def_bool y | 120 | def_bool y |
diff --git a/arch/s390/oprofile/init.c b/arch/s390/oprofile/init.c index 0e38a5b8793..16c76def4a9 100644 --- a/arch/s390/oprofile/init.c +++ b/arch/s390/oprofile/init.c | |||
| @@ -133,7 +133,7 @@ static int oprofile_create_hwsampling_files(struct super_block *sb, | |||
| 133 | return 0; | 133 | return 0; |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | int oprofile_hwsampler_init(struct oprofile_operations* ops) | 136 | static int oprofile_hwsampler_init(struct oprofile_operations *ops) |
| 137 | { | 137 | { |
| 138 | if (hwsampler_setup()) | 138 | if (hwsampler_setup()) |
| 139 | return -ENODEV; | 139 | return -ENODEV; |
| @@ -166,13 +166,13 @@ int oprofile_hwsampler_init(struct oprofile_operations* ops) | |||
| 166 | return 0; | 166 | return 0; |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | void oprofile_hwsampler_exit(void) | 169 | static void oprofile_hwsampler_exit(void) |
| 170 | { | 170 | { |
| 171 | oprofile_timer_exit(); | 171 | oprofile_timer_exit(); |
| 172 | hwsampler_shutdown(); | 172 | hwsampler_shutdown(); |
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | int __init oprofile_arch_init(struct oprofile_operations* ops) | 175 | int __init oprofile_arch_init(struct oprofile_operations *ops) |
| 176 | { | 176 | { |
| 177 | ops->backtrace = s390_backtrace; | 177 | ops->backtrace = s390_backtrace; |
| 178 | 178 | ||
