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

Commit 15f304b6 authored by Ralf Baechle's avatar Ralf Baechle Committed by Thomas Gleixner
Browse files

i8253: Consolidate all kernel definitions of i8253_lock



Move them to drivers/clocksource/i8253.c and remove the
implementations in arch/

[ tglx: Avoid the extra file in lib - folded arch patches in. The
  export will become conditional in a later step ]

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Link: http://lkml.kernel.org/r/20110601180610.221426078@duck.linux-mips.net


Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent cb2455aa
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -19,8 +19,6 @@

#include "common.h"

DEFINE_RAW_SPINLOCK(i8253_lock);

static void pit_set_mode(enum clock_event_mode mode,
	struct clock_event_device *evt)
{
+0 −3
Original line number Diff line number Diff line
@@ -16,9 +16,6 @@
#include <asm/io.h>
#include <asm/time.h>

DEFINE_RAW_SPINLOCK(i8253_lock);
EXPORT_SYMBOL(i8253_lock);

/*
 * Initialize the PIT timer.
 *
+1 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ config X86
	select IRQ_FORCED_THREADING
	select USE_GENERIC_SMP_HELPERS if SMP
	select HAVE_BPF_JIT if (X86_64 && NET)
	select I8253_LOCK

config INSTRUCTION_DECODER
	def_bool (KPROBES || PERF_EVENTS)
+0 −3
Original line number Diff line number Diff line
@@ -16,9 +16,6 @@
#include <asm/hpet.h>
#include <asm/smp.h>

DEFINE_RAW_SPINLOCK(i8253_lock);
EXPORT_SYMBOL(i8253_lock);

/*
 * HPET replaces the PIT, when enabled. So we need to know, which of
 * the two timers is used
+6 −0
Original line number Diff line number Diff line
config CLKSRC_I8253
	bool

config I8253_LOCK
	bool

config CLKBLD_I8253
	def_bool y if CLKSRC_I8253 || I8253_LOCK

config CLKSRC_MMIO
	bool
Loading