Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec6b426c authored by Robert Richter's avatar Robert Richter
Browse files

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: default avatarRobert Richter <robert.richter@amd.com>
parent c814d160
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -30,9 +30,6 @@ config OPROFILE_EVENT_MULTIPLEX
config HAVE_OPROFILE
	bool

config HAVE_HWSAMPLER
	bool

config KPROBES
	bool "Kprobes"
	depends on MODULES
+0 −1
Original line number Diff line number Diff line
@@ -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
+3 −3
Original line number Diff line number Diff line
@@ -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;
@@ -166,7 +166,7 @@ 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();