01 Jul, 2011

2 commits

  • Remove the hysterical outb/inb_pit defines and use outb_p/inb_p in the
    code.

    Signed-off-by: Thomas Gleixner
    Cc: Russell King
    Cc: Ralf Baechle
    Cc: John Stultz
    Link: http://lkml.kernel.org/r/20110609130622.348437125@linutronix.de

    Thomas Gleixner
     
  • arm, mips and x86 implement i8253 based clockevents. All the same code
    copied. Create a common implementation in drivers/clocksource/i8253.c.

    About time to rename drivers/clocksource/ to something else.

    Signed-off-by: Thomas Gleixner
    Cc: Russell King
    Cc: Ralf Baechle
    Cc: John Stultz
    Link: http://lkml.kernel.org/r/20110609130621.921710458@linutronix.de

    Thomas Gleixner
     

09 Jun, 2011

4 commits

  • Move setup_pit_timer() declaration to the common header file and
    remove the arch specific ones.

    [ tglx: Move it to linux/i8253.h instead of asm/mips and asm/x86 ]

    Signed-off-by: Ralf Baechle
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: Russell King
    Cc: linux-mips@linux-mips.org
    Cc: Sergei Shtylyov

    Ralf Baechle
     
  • x86 defines PIT_LATCH as LATCH which in is defined as
    ((CLOCK_TICK_RATE + HZ/2) / HZ) and again defines
    CLOCK_TICK_RATE as PIT_TICK_RATE.

    MIPS defines PIT_LATCH as LATCH which in is defined as
    ((CLOCK_TICK_RATE + HZ/2) / HZ) and again defines
    CLOCK_TICK_RATE as 1193182.

    ARM defines PITCH_LATCH as ((PIT_TICK_RATE + HZ / 2) / HZ) - and that's
    the sanest thing and equivalent to above definitions so use that as the
    new definition in .

    Signed-off-by: Ralf Baechle
    Cc: Russell King
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-mips@linux-mips.org
    Link: http://lkml.kernel.org/r/20110601180610.832810002@duck.linux-mips.net
    Signed-off-by: Thomas Gleixner

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle
    Cc: Russell King
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-mips@linux-mips.org
    Link: http://lkml.kernel.org/r/20110601180610.134151920@duck.linux-mips.net
    Signed-off-by: Thomas Gleixner

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle
    Cc: linux-mips@linux-mips.org
    Link: http://lkml.kernel.org/r/20110601180610.054254048@duck.linux-mips.net
    Signed-off-by: Thomas Gleixner

    arch/arm/mach-footbridge/isa-timer.c | 2 +-
    arch/mips/cobalt/time.c | 2 +-
    arch/mips/jazz/irq.c | 2 +-
    arch/mips/kernel/i8253.c | 2 +-
    arch/mips/mti-malta/malta-time.c | 2 +-
    arch/mips/sgi-ip22/ip22-time.c | 2 +-
    arch/mips/sni/time.c | 2 +-
    arch/x86/kernel/apic/apic.c | 2 +-
    arch/x86/kernel/apm_32.c | 2 +-
    arch/x86/kernel/hpet.c | 2 +-
    arch/x86/kernel/i8253.c | 2 +-
    arch/x86/kernel/time.c | 2 +-
    drivers/block/hd.c | 2 +-
    drivers/clocksource/i8253.c | 2 +-
    drivers/input/gameport/gameport.c | 2 +-
    drivers/input/joystick/analog.c | 2 +-
    drivers/input/misc/pcspkr.c | 2 +-
    include/linux/i8253.h | 11 +++++++++++
    sound/drivers/pcsp/pcsp.h | 2 +-
    19 files changed, 29 insertions(+), 18 deletions(-)

    Ralf Baechle