1. Nov 06, 2008
  2. Oct 28, 2008
  3. Oct 27, 2008
    • Mike Travis's avatar
      x86/uv: provide a System Activity Indicator driver · 7f1baa06
      Mike Travis authored
      
      
      Impact: start per CPU heartbeat LED timers on SGI UV systems
      
      The SGI UV system has no LEDS but uses one of the system controller
      regs to indicate the online internal state of the cpu.  There is a
      heartbeat bit indicating that the cpu is responding to interrupts,
      and an idle bit indicating whether the cpu is idle when the heartbeat
      interrupt occurs.  The current period is one second.
      
      When a cpu panics, an error code is written by BIOS to this same reg.
      
      This patchset provides the following:
      
        * x86_64: Add base functionality for writing to the specific SCIR's
          for each cpu.
      
        * heartbeat: Invert "heartbeat" bit to indicate the cpu is
          "interruptible".  If the current thread is the idle thread,
          then indicate system is "idle".
      
        * if hotplug enabled, all bits are set (0xff) when the cpu is disabled.
      
      Signed-off-by: default avatarMike Travis <travis@sgi.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      7f1baa06
    • Ingo Molnar's avatar
      Merge commit 'v2.6.28-rc2' into x86/uv · 5292ae11
      Ingo Molnar authored
      5292ae11
    • Linus Torvalds's avatar
      Linux 2.6.28-rc2 · 0173a326
      Linus Torvalds authored
      .. fix all the worst problems in -rc1
      0173a326
    • Geert Uytterhoeven's avatar
      m68k: Disable Amiga serial console support if modular · d1a35e4d
      Geert Uytterhoeven authored
      
      
      If CONFIG_AMIGA_BUILTIN_SERIAL=m, I get the following warnings:
      
      | drivers/char/amiserial.c: At top level:
      | drivers/char/amiserial.c:2138: warning: data definition has no type or storage class
      | drivers/char/amiserial.c:2138: warning: type defaults to 'int' in declaration of 'console_initcall'
      | drivers/char/amiserial.c:2138: warning: parameter names (without types) in function declaration
      | drivers/char/amiserial.c:2134: warning: 'amiserial_console_init' defined but not used
      
      because console_initcall() is not defined (nor really sensible) in the
      modular case.
      
      So disable serial console support if the driver is modular.
      
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d1a35e4d
    • Davide Libenzi's avatar
      epoll: avoid double-inserts in case of EFAULT · 9ce209d6
      Davide Libenzi authored
      In commit f337b9c5
      
       ("epoll: drop
      unnecessary test") Thomas found that there is an unnecessary (always
      true) test in ep_send_events().  The callback never inserts into
      ->rdllink while the send loop is performed, and also does the
      ~EP_PRIVATE_BITS test.  Given we're holding the mutex during this time,
      the conditions tested inside the loop are always true.
      
      HOWEVER.
      
      The test "!ep_is_linked(&epi->rdllink)" wasn't there because we insert
      into ->rdllink, but because the send-events loop might terminate before
      the whole list is scanned (-EFAULT).
      
      In such cases, when the loop terminates early, and when a (leftover)
      file received an event while we're performing the lockless loop, we need
      such test to avoid to double insert the epoll items.  The list_splice()
      done a few steps below, will correctly re-insert the ones that were left
      on "txlist".
      
      This should fix the kenrel.org bugzilla entry 11831.
      
      Signed-off-by: default avatarDavide Libenzi <davidel@...>
      9ce209d6
    • Arjan van de Ven's avatar
      select: deal with math overflow from borderline valid userland data · 4d36a9e6
      Arjan van de Ven authored
      
      
      Some userland apps seem to pass in a "0" for the seconds, and several
      seconds worth of usecs to select().  The old kernels accepted this just
      fine, so the new kernels must too.
      
      However, due to the upscaling of the microseconds to nanoseconds we had
      some cases where we got math overflow, and depending on the GCC version
      (due to inlining decisions) that actually resulted in an -EINVAL return.
      
      This patch fixes this by adding the excess microseconds to the seconds
      field.
      
      Also with thanks to Marcin Slusarz for spotting some implementation bugs
      in the diagnostics patches.
      
      Reported-by: default avatarCarlos R. Mafra <crmafra2@gmail.com>
      Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4d36a9e6
    • Arjan van de Ven's avatar
      wireless: fix regression caused by regulatory config option · 44a504c4
      Arjan van de Ven authored
      
      
      The default for the regulatory compatibility option is wrong;
      if you picked the default you ended up with a non-functional wifi
      system (at least I did on Fedora 9 with iwl4965).
      I don't think even the October 2008 releases of the various distros
      has the new userland so clearly the default is wrong, and also
      we can't just go about deleting this in 2.6.29...
      
      Change the default to "y" and also adjust the config text a little to
      reflect this.
      
      This patch fixes regression #11859
      
      With thanks to Johannes Berg for the diagnostics
      
      Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      44a504c4
    • Stephen Rothwell's avatar
      cgroup: remove unused variable · 20777766
      Stephen Rothwell authored
      /scratch/sfr/next/kernel/cgroup.c: In function 'cgroup_tasks_start':
      /scratch/sfr/next/kernel/cgroup.c:2107: warning: unused variable 'i'
      
      Introduced in commit cc31edce
      
       "cgroups:
      convert tasks file to use a seq_file with shared pid array".
      
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      20777766
    • Linus Torvalds's avatar
      Merge branch 'hwmon-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6 · b1cd2ee3
      Linus Torvalds authored
      * 'hwmon-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
        hwmon: (abituguru3) enable DMI probing feature on AW9D-MAX
        hwmon: (abituguru3) Cosmetic whitespace fixes
        hwmon: (adt7473) Fix voltage conversion routines
        hwmon: (lm90) Add support for the LM99 16 degree offset
        hwmon: (lm90) Fix handling of hysteresis value
        hwmon-vid: Add support for AMD family 10h CPUs
        hwmon: (w83781d) Fix linking when built-in
      b1cd2ee3
    • Francois Romieu's avatar
      r8169: revert "read MAC address from EEPROM on init" · e383d564
      Francois Romieu authored
      This reverts commit 7bf6bf48
      
      .
      
      The code has both a short existence and an increasing track of failures
      despite some work to amend it for -rc1.  It is not just a matter of
      reading the eeprom: sometimes the eeprom is read correctly, then the mac
      address is not written correctly back into the mac registers.
      
      Some chipsets seem to work reliably but it is not clear at this point if
      the code can simply be made to work on a per-chipset basis and post -rc1
      is not the place where I want to experiment these things.
      
      Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e383d564
    • Al Viro's avatar
      arm ide breakage · 1137fb67
      Al Viro authored
      
      
      a) semicolon before the function body is a bad idea
      b) it's const struct foo, not struct const foo
      c) incidentally, it's ecard_remove_driver(), not ecard_unregister_driver()
      d) compiling is occasionally useful.
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1137fb67
    • Al Viro's avatar
      fix allmodconfig breakage · ce97e13e
      Al Viro authored
      If you use KCONFIG_ALLCONFIG (even with empty file) you get broken
      allmodconfig/allyesconfig; CONFIG_MODULES gets turned off, with obvious
      massive fallout.
      
      Breakage had been introduced when conf_set_all_new_symbols() got used
      for allmodconfig et.al.
      
      What happens is that sym_calc_value(modules_sym) done in
      conf_read_simple() sets SYMBOL_VALID on both modules_sym and MODULES.
      When we get to conf_set_all_new_symbols(), we set sym->def[S_DEF_USER]
      on everything, but it has no effect on sym->curr for the symbols that
      already have SYMBOL_VALID - these are stuck.
      
      Solution: use sym_clear_all_valid() in there.  Note that it makes
      reevaluation of modules_sym redundant - sym_clear_all_valid() will do
      that itself.
      
      [ Fixes http://bugzilla.kernel.org/show_bug.cgi?id=11512
      
      , says Alexey ]
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ce97e13e
    • Alistair John Strachan's avatar
      hwmon: (abituguru3) enable DMI probing feature on AW9D-MAX · c02d6569
      Alistair John Strachan authored
      
      
      Switch the AW9D-MAX over from port probing to the preferred DMI
      probe method.
      
      Signed-off-by: default avatarAlistair John Strachan <alistair@devzero.co.uk>
      Tested-by: default avatarJustin Piszcz <jpiszcz@lucidpixels.com>
      Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      c02d6569
    • Alistair John Strachan's avatar
      hwmon: (abituguru3) Cosmetic whitespace fixes · 4777e4e6
      Alistair John Strachan authored
      
      
      As the probable result of zealous copy/pasting, many supported boards
      contain sensor names with trailing whitespace. Though this is not a
      huge problem, it is inconsistent with other sensor names, and with
      other similar hwmon drivers.
      
      Additionally, the DMI nag message added in 2.6.27 was missing a
      space between two sentence fragments -- might as well clean that up
      too.
      
      Doesn't alter any kernel text, just data.
      
      Signed-off-by: default avatarAlistair John Strachan <alistair@devzero.co.uk>
      Reported-by: default avatarJustin Piszcz <jpiszcz@lucidpixels.com>
      Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      4777e4e6
    • Jean Delvare's avatar
      hwmon: (adt7473) Fix voltage conversion routines · be821b78
      Jean Delvare authored
      
      
      Fix voltage conversion routines. Based on an earlier patch from
      Paulius Zaleckas.
      
      According to the datasheet voltage is scaled with resistors and
      value 192 is nominal voltage. 0 is 0V.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
      Cc: Darrick J. Wong <djwong@us.ibm.com>
      be821b78
    • Jean Delvare's avatar
      hwmon: (lm90) Add support for the LM99 16 degree offset · 97ae60bb
      Jean Delvare authored
      
      
      The LM99 differs from the LM86, LM89 and LM90 in that it reports
      remote temperatures (temp2) 16 degrees lower than they really are. So
      far we have been cheating and handled this in userspace but it really
      should be handled by the driver directly.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      97ae60bb
    • Jean Delvare's avatar
      hwmon: (lm90) Fix handling of hysteresis value · ec38fa2b
      Jean Delvare authored
      
      
      There are several problems in the way the hysteresis value is handled
      by the lm90 driver:
      
      * In show_temphyst(), specific handling of the MAX6646 is missing, so
        the hysteresis is reported incorrectly if the critical temperature
        is over 127 degrees C.
      * In set_temphyst(), the new hysteresis register value is written to
        the chip but data->temp_hyst isn't updated accordingly, so there is
        a short period of time (up to 2 seconds) where the old hystereris
        value will be returned while the new one is already active.
      * In set_temphyst(), the critical temperature which is used as a base
        to compute the value of the hysteresis register lacks
        device-specific handling. As a result, the value of the hysteresis
        register might be incorrect for the ADT7461 and MAX6646 chips.
      
      Fix these 3 bugs.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Ben Hutchings <bhutchings@solarflare.com>
      Cc: Nate Case <ncase@xes-inc.com>
      ec38fa2b
    • Jean Delvare's avatar
      hwmon-vid: Add support for AMD family 10h CPUs · 1b871826
      Jean Delvare authored
      
      
      The AMD family 10h CPUs use the same VID decoding table as the family
      0Fh CPUs.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      1b871826
    • Geert Uytterhoeven's avatar
      hwmon: (w83781d) Fix linking when built-in · dd56b638
      Geert Uytterhoeven authored
      
      
      When w83781d is built-in, the final links fails with the following vague error
      message:
      
      `.exit.text' referenced in section `.init.text' of drivers/built-in.o: defined
      in discarded section `.exit.text' of drivers/built-in.o
      
      w83781d_isa_unregister() cannot be marked __exit, as it's also called from
      sensors_w83781d_init(), which is marked __init.
      
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: Wolfgang Grandegger <wg@grandegger.com>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      dd56b638
  4. Oct 26, 2008
  5. Oct 24, 2008