06 Oct, 2012

40 commits

  • To avoid name conflicts:

    drivers/video/riva/fbdev.c:281:9: sparse: preprocessor token MAX_LEVEL redefined

    While at it, also make the other names more consistent and add
    parentheses.

    [akpm@linux-foundation.org: repair fallout]
    [sfr@canb.auug.org.au: IB/mlx4: fix for MAX_ID_MASK to MAX_IDR_MASK name change]
    Signed-off-by: Fengguang Wu
    Cc: Bernd Petrovitsch
    Cc: walter harms
    Cc: Glauber Costa
    Signed-off-by: Stephen Rothwell
    Cc: Roland Dreier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fengguang Wu
     
  • Now that we have defined generic set_bit_le() we do not need to use
    test_and_set_bit_le() for atomically setting a bit.

    Signed-off-by: Takuya Yoshikawa
    Cc: Avi Kivity
    Cc: Marcelo Tosatti
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Takuya Yoshikawa
     
  • Needed to replace test_and_set_bit_le() in virt/kvm/kvm_main.c which is
    being used for this missing function.

    Signed-off-by: Takuya Yoshikawa
    Acked-by: Benjamin Herrenschmidt
    Cc: Avi Kivity
    Cc: Marcelo Tosatti
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Takuya Yoshikawa
     
  • Needed to replace test_and_set_bit_le() in virt/kvm/kvm_main.c which is
    being used for this missing function.

    Signed-off-by: Takuya Yoshikawa
    Acked-by: Arnd Bergmann
    Cc: Marcelo Tosatti
    Cc: Avi Kivity
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Takuya Yoshikawa
     
  • To introduce generic set_bit_le() later, we remove our own definition
    and use a proper non-atomic bitops function: __set_bit_le().

    Signed-off-by: Takuya Yoshikawa
    Acked-by: Grant Grundler
    Cc: David Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Takuya Yoshikawa
     
  • There are now standard functions for dealing with little-endian bit
    arrays, so use them instead of our own implementations.

    Signed-off-by: Ben Hutchings
    Signed-off-by: Takuya Yoshikawa
    Cc: David Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Hutchings
     
  • This patch adds the of_match_table to platform-lcd driver to be
    probed when platform-lcd device node is found in the device tree.

    [akpm@linux-foundation.org: include of.h]
    Signed-off-by: Jingoo Han
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jingoo Han
     
  • devm_kfree should not have to be explicitly used.

    The semantic patch that fixes this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression x,d;
    @@

    x = devm_kzalloc(...)
    ...
    ?-devm_kfree(d,x);
    //

    Signed-off-by: Julia Lawall
    Acked-by: Jingoo Han
    Signed-off-by: Florian Tobias Schandinat
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Julia Lawall
     
  • This driver was for the ProGear webpad device which was produced in
    2000/2001 and is not available on a market. I no longer have this
    hardware so can not even check how Linux works on it.

    Signed-off-by: Marcin Juszkiewicz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marcin Juszkiewicz
     
  • This driver is a general version for LM3639 backlgiht + flash driver chip
    of TI.

    LM3639:
    The LM3639 is a single chip LCD Display Backlight driver + white LED
    Camera driver. Programming is done over an I2C compatible interface.
    www.ti.com

    [akpm@linux-foundation.org: code layout tweaks]
    Signed-off-by: G.Shark Jeong
    Cc: Richard Purdie
    Cc: Daniel Jeong
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    G.Shark Jeong
     
  • This driver is a general version for LM3630 backlgiht driver chip of TI.

    LM3630 :
    The LM3630 is a current mode boost converter which supplies the power
    and controls the current in two strings of up to 10 LEDs per string.
    Programming is done over an I2C compatible interface.
    www.ti.com

    [akpm@linux-foundation.org: make bled_name[] static, a few coding style tuneups, create new set_intensity(), partly to avoid awkward layout gymnastics]
    Signed-off-by: G.Shark Jeong
    Cc: Richard Purdie
    Cc: Daniel Jeong
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    G.Shark Jeong
     
  • LP8556 backlight driver supports fast refresh mode when exiting the low
    power mode. This bit can be configurable in the platform side.

    Signed-off-by: Milo(Woogyom) Kim
    Cc: Richard Purdie
    Cc: Bryan Wu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kim, Milo
     
  • Since msleep() might not sleep for the desired amount when less than 20ms,
    use usleep_range().

    Signed-off-by: Jingoo Han
    Cc: Claudio Nieder
    Cc: Richard Purdie
    Cc: Sachin Kamat
    Cc: Mark Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jingoo Han
     
  • Since msleep() might not sleep for the desired amount when less than 20ms,
    use usleep_range().

    Signed-off-by: Jingoo Han
    Cc: Haavard Skinnemoen
    Cc: Richard Purdie
    Cc: Sachin Kamat
    Cc: Mark Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jingoo Han
     
  • Since msleep() might not sleep for the desired amount when less than 20ms,
    use usleep_range().

    Signed-off-by: Jingoo Han
    Cc: Ashish Jangam
    Cc: Richard Purdie
    Cc: Sachin Kamat
    Cc: Mark Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jingoo Han
     
  • Signed-off-by: Khalid Aziz
    Cc: Khalid Aziz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Khalid Aziz
     
  • Signed-off-by: Andy Shevchenko
    Acked-by: Viresh Kumar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     
  • Commit ec21e2ec3676 ("freescale: Move the Freescale drivers") moved the
    files, update the pattern.

    Signed-off-by: Joe Perches
    Acked-by: Richard Cochran
    Acked-by: Jeff Kirsher
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Signed-off-by: Uwe Kleine-König
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Uwe Kleine-König
     
  • Signed-off-by: Yang Bai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yang Bai
     
  • Acked-by: Andrei Emeltchenko
    Signed-off-by: Andy Shevchenko
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     
  • Numbering the 8 potential digits 2 though 9 never did make a lot of sense.

    Signed-off-by: George Spelvin
    Cc: Denys Vlasenko
    Cc: Michal Nazarewicz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    George Spelvin
     
  • If you're going to have a conditional branch after each 32x32->64-bit
    multiply, might as well shrink the code and make it a loop.

    This also avoids using the long multiply for small integers.

    (This leaves the comments in a confusing state, but that's a separate
    patch to make review easier.)

    Signed-off-by: George Spelvin
    Cc: Denys Vlasenko
    Cc: Michal Nazarewicz
    Cc: Rabin Vincent
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    George Spelvin
     
  • The same multiply-by-inverse technique can be used to convert division by
    10000 to a 32x32->64-bit multiply.

    Signed-off-by: George Spelvin
    Cc: Denys Vlasenko
    Cc: Michal Nazarewicz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    George Spelvin
     
  • Shrink the reciprocal approximations used in put_dec_full4() based on the
    comments in put_dec_full9().

    Signed-off-by: George Spelvin
    Cc: Denys Vlasenko
    Cc: Michal Nazarewicz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    George Spelvin
     
  • orderly_poweroff is trying to poweroff platform in two steps:

    step 1: Call user space application to poweroff
    step 2: If user space poweroff fail, then do a force power off if force param
    is set.

    The bug here is, step 1 is always successful with param UMH_NO_WAIT, which obey
    the design goal of orderly_poweroff.

    We have two choices here:
    UMH_WAIT_EXEC which means wait for the exec, but not the process;
    UMH_WAIT_PROC which means wait for the process to complete.
    we need to trade off the two choices:

    If using UMH_WAIT_EXEC, there is potential issue comments by Serge E.
    Hallyn: The exec will have started, but may for whatever (very unlikely)
    reason fail.

    If using UMH_WAIT_PROC, there is potential issue comments by Eric W.
    Biederman: If the caller is not running in a kernel thread then we can
    easily get into a case where the user space caller will block waiting for
    us when we are waiting for the user space caller.

    Thanks for their excellent ideas, based on the above discussion, we
    finally choose UMH_WAIT_EXEC, which is much more safe, if the user
    application really fails, we just complain the application itself, it
    seems a better choice here.

    Signed-off-by: Feng Hong
    Acked-by: Kees Cook
    Acked-by: Serge Hallyn
    Cc: "Eric W. Biederman"
    Acked-by: "Rafael J. Wysocki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    hongfeng
     
  • As kernel_power_off() calls disable_nonboot_cpus(), we may also want to
    have kernel_restart() call disable_nonboot_cpus(). Doing so can help
    machines that require boot cpu be the last alive cpu during reboot to
    survive with kernel restart.

    This fixes one reboot issue seen on imx6q (Cortex-A9 Quad). The machine
    requires that the restart routine be run on the primary cpu rather than
    secondary ones. Otherwise, the secondary core running the restart
    routine will fail to come to online after reboot.

    Signed-off-by: Shawn Guo
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shawn Guo
     
  • Historically, the top three bytes of personality have been used for
    things such as ADDR_NO_RANDOMIZE, which made sense only for specific
    architectures.

    We now however have a flag there that is general no matter the
    architecture (UNAME26); generally we have to be careful to preserve the
    personality flags across exec().

    This patch fixes tile architecture not to forcefully overwrite
    personality flags during exec().

    In addition to that, we fix two other things along the way:

    - exec_domain switching is fixed -- set_personality() should always
    be used instead of directly assigning to current->personality.
    - as pointed out by Arnd Bergmann, PER_LINUX_32BIT is not used anywhere
    by tile, so let's just drop that in favor of PER_LINUX

    Signed-off-by: Jiri Kosina
    Acked-by: Chris Metcalf
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Kosina
     
  • Historically, the top three bytes of personality have been used for
    things such as ADDR_NO_RANDOMIZE, which made sense only for specific
    architectures.

    We now however have a flag there that is general no matter the
    architecture (UNAME26); generally we have to be careful to preserve the
    personality flags across exec().

    This patch tries to fix all architectures that forcefully overwrite
    personality flags during exec() (ppc32 and s390 have been fixed recently
    by commits f9783ec862ea ("[S390] Do not clobber personality flags on
    exec") and 59e4c3a2fe9c ("powerpc/32: Don't clobber personality flags on
    exec") in a similar way already).

    Signed-off-by: Jiri Kosina
    Cc: Haavard Skinnemoen
    Cc: Hans-Christian Egtvedt
    Cc: Mike Frysinger
    Cc: Mark Salter
    Cc: Mikael Starvik
    Cc: Jesper Nilsson
    Cc: David Howells
    Cc: Yoshinori Sato
    Cc: Richard Kuo
    Cc: Hirokazu Takata
    Cc: Geert Uytterhoeven
    Cc: Michal Simek
    Cc: Koichi Yasutake
    Cc: Jonas Bonn
    Cc: Chen Liqin
    Cc: Lennox Wu
    Cc: Paul Mundt
    Cc: "David S. Miller"
    Cc: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Kosina
     
  • It's required for the core fs/namespace.c and many other basic features.

    Signed-off-by: Fengguang Wu
    Acked-by: Lennox Wu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fengguang Wu
     
  • Commit 6afe1a1fe8ff ("PM: Remove legacy PM") removed the initialization
    of retval, causing:

    arch/frv/kernel/pm.c: In function 'sysctl_pm_do_suspend':
    arch/frv/kernel/pm.c:165:5: warning: 'retval' may be used uninitialized in this function [-Wuninitialized]

    Remove the variable completely to fix this, and convert to a proper
    switch (...) { ... } construct to improve readability.

    Signed-off-by: Geert Uytterhoeven
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • Fix the const sections for the code generated by crc32 table. There's
    no ro version of the cacheline aligned section, so we cannot put in
    const data without a conflict Just don't make the crc tables const for
    now.

    [ak@linux.intel.com: some fixes and new description]
    [akpm@linux-foundation.org: checkpatch fixes]
    Signed-off-by: Joe Mario
    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Mario
     
  • Signed-off-by: Andi Kleen
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Signed-off-by: Andi Kleen
    Cc: David Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Signed-off-by: Andi Kleen
    Cc: Oliver Hartkopp
    Cc: David Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Signed-off-by: Andi Kleen
    Cc: Florian Tobias Schandinat
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Signed-off-by: Andi Kleen
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Signed-off-by: Andi Kleen
    Cc: Matthew Garrett
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • Signed-off-by: Andi Kleen
    Cc: Krzysztof Halasa
    Cc: David Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen