Skip to content

Commit

Permalink
oprofile, s390: Cleanups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robert Richter committed Mar 16, 2011
1 parent c814d16 commit ec6b426
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ config OPROFILE_EVENT_MULTIPLEX
config HAVE_OPROFILE
bool

config HAVE_HWSAMPLER
bool

config KPROBES
bool "Kprobes"
depends on MODULES
Expand Down
1 change: 0 additions & 1 deletion arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ config S390
select ARCH_INLINE_WRITE_UNLOCK_BH
select ARCH_INLINE_WRITE_UNLOCK_IRQ
select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
select HAVE_HWSAMPLER

config SCHED_OMIT_FRAME_POINTER
def_bool y
Expand Down
6 changes: 3 additions & 3 deletions arch/s390/oprofile/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static int oprofile_create_hwsampling_files(struct super_block *sb,
return 0;
}

int oprofile_hwsampler_init(struct oprofile_operations* ops)
static int oprofile_hwsampler_init(struct oprofile_operations *ops)
{
if (hwsampler_setup())
return -ENODEV;
Expand Down Expand Up @@ -166,13 +166,13 @@ int oprofile_hwsampler_init(struct oprofile_operations* ops)
return 0;
}

void oprofile_hwsampler_exit(void)
static void oprofile_hwsampler_exit(void)
{
oprofile_timer_exit();
hwsampler_shutdown();
}

int __init oprofile_arch_init(struct oprofile_operations* ops)
int __init oprofile_arch_init(struct oprofile_operations *ops)
{
ops->backtrace = s390_backtrace;

Expand Down

0 comments on commit ec6b426

Please sign in to comment.