aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2011-03-16 07:10:12 -0400
committerRobert Richter <robert.richter@amd.com>2011-03-16 09:30:40 -0400
commitec6b426c4dbb9eef40375c389746cab7e931a584 (patch)
tree6078f54953896063a344f52ddd89b738553a8fc4 /arch/s390
parentc814d160f61466ea6d4491bb4e8e548856e27a58 (diff)
oprofile, s390: Cleanups
Remove unused HAVE_HWSAMPLER config option. It is not used anymore, removing it. Also make some functions static and some coding style fixes. Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/Kconfig1
-rw-r--r--arch/s390/oprofile/init.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index 0cf20adfbb45..ff19efdf6fef 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
120config SCHED_OMIT_FRAME_POINTER 119config 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 0e38a5b8793f..16c76def4a9d 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
136int oprofile_hwsampler_init(struct oprofile_operations* ops) 136static 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
169void oprofile_hwsampler_exit(void) 169static 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
175int __init oprofile_arch_init(struct oprofile_operations* ops) 175int __init oprofile_arch_init(struct oprofile_operations *ops)
176{ 176{
177 ops->backtrace = s390_backtrace; 177 ops->backtrace = s390_backtrace;
178 178