06 Jul, 2015

2 commits

  • Now that there is no paravirt TSC, the "native" is
    inappropriate. The function does RDTSC, so give it the obvious
    name: rdtsc().

    Suggested-by: Borislav Petkov
    Signed-off-by: Andy Lutomirski
    Signed-off-by: Borislav Petkov
    Cc: Andy Lutomirski
    Cc: Borislav Petkov
    Cc: Brian Gerst
    Cc: Denys Vlasenko
    Cc: H. Peter Anvin
    Cc: Huang Rui
    Cc: John Stultz
    Cc: Len Brown
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Ralf Baechle
    Cc: Thomas Gleixner
    Cc: kvm ML
    Link: http://lkml.kernel.org/r/fd43e16281991f096c1e4d21574d9e1402c62d39.1434501121.git.luto@kernel.org
    [ Ported it to v4.2-rc1. ]
    Signed-off-by: Ingo Molnar

    Andy Lutomirski
     
  • This timing code is hideous, and this doesn't help. It gets rid
    of one of the last users of rdtscl(), though.

    Signed-off-by: Andy Lutomirski
    Signed-off-by: Borislav Petkov
    Acked-by: Dmitry Torokhov
    Cc: Andy Lutomirski
    Cc: Borislav Petkov
    Cc: Brian Gerst
    Cc: Denys Vlasenko
    Cc: H. Peter Anvin
    Cc: Huang Rui
    Cc: John Stultz
    Cc: Len Brown
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Ralf Baechle
    Cc: Thomas Gleixner
    Cc: kvm ML
    Cc: linux-input@vger.kernel.org
    Link: http://lkml.kernel.org/r/90d19b3cea0e05ca6f333d1598daa38afb993260.1434501121.git.luto@kernel.org
    Signed-off-by: Ingo Molnar

    Andy Lutomirski
     

12 Sep, 2014

1 commit

  • The current codes in gameport and analog joystick drivers for the time
    accounting have a long-standing problem when the system is running
    with CPU freq; since the timing is measured via TSC or sample counter,
    the calculation isn't reliable.

    In this patch, as a simple fix, use the standard ktime to measure the
    timing. In case where no high resolution timer is available,
    use_ktime bool option is provided to both modules. Setting
    use_ktime=false switches to the old methods.

    Tested-by: Clemens Ladisch
    Signed-off-by: Takashi Iwai
    Signed-off-by: Dmitry Torokhov

    Takashi Iwai
     

13 Aug, 2014

1 commit

  • As with ARM the ARMv8 architecture provides a cycle counter which can be
    used to provide a high resolution time for the joystick driver and
    silence the build warning that results from not having a precise timer
    on ARMv8, making allmodconfig and allyesconfig quieter.

    Signed-off-by: Mark Brown
    Signed-off-by: Dmitry Torokhov

    Mark Brown
     

15 Mar, 2013

1 commit

  • ARM normally has an accurate clock source, so
    we can theoretically use analog joysticks more
    accurately and at the same time avoid the
    build warning

    #warning Precise timer not defined for this architecture.

    from the joystick driver.

    Now, why anybody would use that driver no ARM I have no
    idea, but Ben Dooks enabled it in the s3c2410_defconfig
    along with a bunch of other drivers, even though that
    platform has neither ISA nor PCI support. It still
    seems to be the right thing to fix this quirk.

    Signed-off-by: Arnd Bergmann
    Cc: Dmitry Torokhov
    Cc: Vojtech Pavlik
    Cc: Ben Dooks

    Arnd Bergmann
     

05 Feb, 2013

1 commit


25 Aug, 2011

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: ad714x - read the interrupt status registers in a row
    Input: ad714x - use DMA-safe buffers for spi_write()
    Input: ad714x - fix endianness issues
    Input: ad714xx-spi - force SPI bus into the default 8-bit mode
    Input: ep93xx_keypad - add missing include of linux/module.h
    Input: tnetv107x-ts - add missing include of linux/module.h
    Input: max11801_ts - correct license statement
    Input: atmel_mxt_ts - report pressure information from the driver
    Input: bcm5974 - Add support for newer MacBookPro8,2
    Input: wacom - report id 3 returns 4 bytes of data
    Input: wacom - add WAC_MSG_RETRIES define
    Input: wacom - add support for the Wacom Bamboo Pen (CTL-660/K)
    Input: tegra-kbc - correct call to input_free_device
    Input: mpu3050 - correct call to input_free_device
    Input: bcm5974 - add support for touchpads found in MacBookAir4,2
    Input: mma8450 - fix module device table type
    Input: remove CLOCK_TICK_RATE from analog joystick driver

    Linus Torvalds
     

05 Aug, 2011

1 commit


09 Jun, 2011

1 commit

  • 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
     

02 Mar, 2010

1 commit

  • i8253_lock needs to be a real spinlock in preempt-rt, i.e. it can
    not be converted to a sleeping lock.

    Convert it to raw_spinlock and fix up all users.

    Signed-off-by: Thomas Gleixner
    Acked-by: Ralf Baechle
    Acked-by: Dmitry Torokhov
    Acked-by: Takashi Iwai
    Cc: Jens Axboe
    LKML-Reference:

    Thomas Gleixner
     

17 Jun, 2009

1 commit

  • PIT_TICK_RATE is currently defined in four architectures, but in three
    different places. While linux/timex.h is not the perfect place for it, it
    is still a reasonable replacement for those drivers that traditionally use
    asm/timex.h to get CLOCK_TICK_RATE and expect it to be the PIT frequency.

    Note that for Alpha, the actual value changed from 1193182UL to 1193180UL.
    This is unlikely to make a difference, and probably can only improve
    accuracy. There was a discussion on the correct value of CLOCK_TICK_RATE
    a few years ago, after which every existing instance was getting changed
    to 1193182. According to the specification, it should be
    1193181.818181...

    Signed-off-by: Arnd Bergmann
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Ralf Baechle
    Cc: Benjamin Herrenschmidt
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: "H. Peter Anvin"
    Cc: Len Brown
    Cc: john stultz
    Cc: Dmitry Torokhov
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnd Bergmann
     

30 Jul, 2008

1 commit


09 Feb, 2008

1 commit

  • Add architecture support for the MN10300/AM33 CPUs produced by MEI to the
    kernel.

    This patch also adds board support for the ASB2303 with the ASB2308 daughter
    board, and the ASB2305. The only processor supported is the MN103E010, which
    is an AM33v2 core plus on-chip devices.

    [akpm@linux-foundation.org: nuke cvs control strings]
    Signed-off-by: Masakazu Urade
    Signed-off-by: Koichi Yasutake
    Signed-off-by: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Howells
     

21 Jan, 2008

1 commit


20 Oct, 2007

1 commit

  • get rid of input BIT* duplicate defines

    use newly global defined macros for input layer. Also remove includes of
    input.h from non-input sources only for BIT macro definiton. Define the
    macro temporarily in local manner, all those local definitons will be
    removed further in this patchset (to not break bisecting).
    BIT macro will be globally defined (1<
    Cc:
    Acked-by: Jiri Kosina
    Cc:
    Acked-by: Marcel Holtmann
    Cc:
    Acked-by: Mauro Carvalho Chehab
    Cc:
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     

03 May, 2007

1 commit


12 Apr, 2007

2 commits


18 Feb, 2007

1 commit


06 Nov, 2006

1 commit


01 Jul, 2006

1 commit


26 Jun, 2006

1 commit


31 Oct, 2005

1 commit

  • I recently picked up my older work to remove unnecessary #includes of
    sched.h, starting from a patch by Dave Jones to not include sched.h
    from module.h. This reduces the number of indirect includes of sched.h
    by ~300. Another ~400 pointless direct includes can be removed after
    this disentangling (patch to follow later).
    However, quite a few indirect includes need to be fixed up for this.

    In order to feed the patches through -mm with as little disturbance as
    possible, I've split out the fixes I accumulated up to now (complete for
    i386 and x86_64, more archs to follow later) and post them before the real
    patch. This way this large part of the patch is kept simple with only
    adding #includes, and all hunks are independent of each other. So if any
    hunk rejects or gets in the way of other patches, just drop it. My scripts
    will pick it up again in the next round.

    Signed-off-by: Tim Schmielau
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

29 Oct, 2005

1 commit


08 Sep, 2005

1 commit


30 Jun, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds