1. 30 Dec, 2002 35 commits
    • Andrew Morton's avatar
      [PATCH] don't call console drivers on non-online CPUs · a93e679a
      Andrew Morton authored
      George Anzinger identified the following problem: when a secondary CPU is
      coming up, it calls printk() before it is "online".  It calls the console
      drivers before its per-cpu storage has been prepared.  And the vga console
      driver does a mod_timer().  This CPU's timers have not yet been initialised;
      it is not clear why this doesn't oops - George thinks it is because virtual
      address zero is still accessible at that time.
      
      I believe the right way to fix this is to change printk so that a not-online
      CPU will not call the console drivers.  Because printk should always be
      callable.  If the CPU is not online the message is buffered, so the next
      caller to printk who is online will actually display it.
      
      ia64 has been doing exactly this for ages, so we can remove the
      arch_consoles_callable() hook and just open-code the cpu_online() test in
      printk.
      
      
      
      That fixes things up for the secondary CPUs.  But this change causes a
      problem for the boot CPU: it is being marked online very late in boot, so the
      printk buffer is being displayed much later than we would like.
      
      I believe that the solution to this is to mark the boot CPU online much
      earlier.  So in this patch we call the new arch-provided function
      smp_prepare_boot_cpu() immediately after the boot CPU's per-cpu areas are set
      up.  Its mandate is to (at least) mark the boot CPU "online".
      
      The change has been reviewed by davem and rth.  No comments were received
      from the other arch maintainers.
      a93e679a
    • Andrew Morton's avatar
      [PATCH] promote the ALIGN() macro · 8b0cc2d4
      Andrew Morton authored
      ALIGN() currently has global scope in <linux/cache.h>.  This causes a
      compilation error in the defxx driver.
      
      Move ALIGN() to <linux/kernel.h> and change the defxx driver to use the
      generic macro in place of its own.
      8b0cc2d4
    • Andrew Morton's avatar
      [PATCH] Fix missing brelse() on ext3 htree error path · f2780cec
      Andrew Morton authored
      It will leak a bh ref on ENOMEM.
      f2780cec
    • Andrew Morton's avatar
      [PATCH] remove hugetlb syscalls · f3e4f3e7
      Andrew Morton authored
      Patch from Ben LaHaise and Bill Irwin.
      
      As discussed a month or so ago, all parties agree that the new
      hugetlbfs and shm APIs are sufficient for the 2.6 kernel.
      
      I marked the vacated syscall slots as "available for reuse".  I doubt
      that there will be any conflicts when that happens.
      f3e4f3e7
    • Andrew Morton's avatar
      [PATCH] remove task_struct.swappable · 3e025d63
      Andrew Morton authored
      Remove unused task_struct.swappable.
      3e025d63
    • Andrew Morton's avatar
      [PATCH] Don't cacheline-align vm_area_struct · d83f033a
      Andrew Morton authored
      Some workloads (Oracle...) use a huge number of VMA's.  They are
      currently a tidy 64 bytes in size, and padding them out to 128 on P4's
      is not worthwhile.
      d83f033a
    • Andrew Morton's avatar
      [PATCH] kmalloc_percpu -- stripped down version · 29621f41
      Andrew Morton authored
      Patch from Ravikiran G Thirumalai <kiran@in.ibm.com>
      
      Creates a simple "kmalloc for each CPU" API.  This will be used for net
      statistics, disk statistics, etc.  (davem has acked the net patches which use
      this code).
      
      kmalloc_per_cpu() is available to modules, unlike the current static per-cpu
      infrastructure.
      29621f41
    • Andrew Morton's avatar
      [PATCH] add drain_local_pages() for CONFIG_SOFTWARE_SUSPEND · 6306d485
      Andrew Morton authored
      swsusp gets confused when pages which it freed do not appear in the
      buddy lists.  So provide a function which will drain the calling CPU's
      per-cpu-pages into the buddy.
      
      The patch has been tested by Pavel.  Presence of the new code is
      conditional on CONFIG_SOFTWARE_SUSPEND.
      6306d485
    • Andrew Morton's avatar
      [PATCH] Enable semtimedop for ia64 32-bit emulation. · 6aa1fff3
      Andrew Morton authored
      Patch from Mark Fasheh <mark.fasheh@oracle.com>
      
      A missing chunk from the semtimedop() implementation.  It enables
      semtimedop() for 32-bit ia32 applications running on ia64.
      
      It also changes semop() to go direct to sys_semtimedop(), bypassing a
      function call.
      6aa1fff3
    • Andrew Morton's avatar
      [PATCH] BIN_TO_BCD consolidation · db8f4c7e
      Andrew Morton authored
      Cleanup patch from Hollis Blanchard <hollis@austin.ibm.com>
      
      We have a large number of private implementations of BIN_TO_BCD and
      BCD_TO_BIN, which are all the same.  And a lot of them are inflexible because
      they modify their arg:
      
      	#define BIN_TO_BCD(val) ((val)=(((val)/10)<<4) + (val)%10)
      
      - Create (in <linux/bcd.h> a generic BIN2BCD/BCD2BIN which does not modify
        its arg
      
      - Create generic BIN_TO_BCD/BCD_TO_BIN which uses the above
      
      - Update lots of callers to use the new generic version.
      db8f4c7e
    • Andrew Morton's avatar
      [PATCH] Remove /proc/meminfo:MemShared · fe04e945
      Andrew Morton authored
      It seems to have been displaying zero for the past several years, and
      we can't think of anything useful to put in there.
      fe04e945
    • Andrew Morton's avatar
      [PATCH] Docs: fix explanation of file-nr · 8bc2c6af
      Andrew Morton authored
      Patch from Paul Jakma <paulj@alphyra.ie>
      
      Documentation/sysctl/fs.txt is incorrect wrt to the middle number of
      /proc/sys/fs/file-nr.  The current docs state it is the number of
      in-use file-handles, from observation this number is actually the
      number of /unused/ file-handles - we've observe that when it hits 0 we
      get file handle problems (rather than when it hits == file-max as docs
      imply).
      8bc2c6af
    • Linus Torvalds's avatar
      Merge · b9628e10
      Linus Torvalds authored
      b9628e10
    • Rusty Russell's avatar
      [PATCH] MODULE_PARM "c" support · 09619fdb
      Rusty Russell authored
      Turns out there was an undocumented "c" flag for MODULE_PARM.
      
      This implementation is a little ugly, but it works, and will do for
      compatibility (I haven't implemented such a two-dimensional array
      primitive, but the whole point of the module_parm et al is that they are
      extensible).
      09619fdb
    • Christoph Hellwig's avatar
      [PATCH] rename CONFIG_VOYAGER to CONFIG_X86_VOYAGER · 948ff1ba
      Christoph Hellwig authored
      The name is just a bit too generic, and we already use the _X86 prefix
      for lots of other stuff in that area.  Dito for the never use CONFIG_PC
      and CONFIG_VISWS.
      948ff1ba
    • Brian Murphy's avatar
      [PATCH] crc32 speedup/use anywhere · 0c0c1d48
      Brian Murphy authored
      This patch combines my patch which statically initialises the crc32
      tables so they can be used at any time (during initialisation) and
      Joakim Tjernlund's patch to speed up the crc calculations by doing word
      operations instead of exclusively byte.
      
      The crc routines are used extensively in jffs2 where speed is very
      important.
      
      I need the crc32 routines to calculate a checksum on values read from an
      eeprom which contain cpu speed and memory size information - so they are
      needed very much earlier in the initialisation process than they are
      currently available.
      0c0c1d48
    • Dominik Brodowski's avatar
      6d7937c3
    • Dominik Brodowski's avatar
      [PATCH] cpufreq: powernow-k6 cleanup · f8e94f0e
      Dominik Brodowski authored
      Clean up searching for best frequency, and add one safety check.
      f8e94f0e
    • Dominik Brodowski's avatar
      [PATCH] cpufreq: longhaul cleanup · c2654518
      Dominik Brodowski authored
      Clean up searching code for best frequency and add some safety checks.
      c2654518
    • Dominik Brodowski's avatar
      [PATCH] cpufreq: deprecated usage of CPUFREQ_ALL_CPUS · 123c66ee
      Dominik Brodowski authored
      The usage of CPUFREQ_ALL_CPUS is deprecated. Only exception is cpufreq_set,
      which needs to iterate over all CPUS now. Also, remove some unneeded code.
      123c66ee
    • Linus Torvalds's avatar
      Avoid unused variable in route.c · 86005b89
      Linus Torvalds authored
      86005b89
    • Linus Torvalds's avatar
      Crapectomy · 3bfb13d6
      Linus Torvalds authored
      3bfb13d6
    • Linus Torvalds's avatar
      Merge http://linux-scsi.bkbits.net/scsi-for-linus-2.5 · e35ad7ae
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      e35ad7ae
    • Alan Stern's avatar
      [PATCH] ide-tape driver update · 9a11cf9e
      Alan Stern authored
      Here is my multiple-bug-fix patch for the ide-tape driver.
      
      The corresponding patch for 2.4.21 has already been accepted by Marcelo.
      9a11cf9e
    • Rusty Russell's avatar
      [PATCH] more module parameter parsing bugs · 10511488
      Rusty Russell authored
      We restore the ","s after parsing: if expect to keep pointers to this
      stuff, we must not do that.
      10511488
    • Andrew Morton's avatar
      [PATCH] fix numaq builds · deedc6f8
      Andrew Morton authored
      NUMAQ does not link - it wants the smp_read_mpc_oem() which I recently disabled.
      deedc6f8
    • Christoph Hellwig's avatar
      [PATCH] more obsolete module API fixes · 2cea9523
      Christoph Hellwig authored
      completly remove the old try_inc_mod_count()
      2cea9523
    • Christoph Hellwig's avatar
      [PATCH] remove obsolete i2c headers · 32cce74b
      Christoph Hellwig authored
      * i2c-elektor.h is empty except for comments
      * sensors.h contains register offsets for tons of hw monitoring chips,
        move the few we actually need into the two drivers that use it
        (there is _no_ overlap)
      32cce74b
    • Christoph Hellwig's avatar
      [PATCH] i2c updates · 700b988c
      Christoph Hellwig authored
      a few new ids, a name change and 10 lines of new code, ported over from
      the external i2c package.
      700b988c
    • Christoph Hellwig's avatar
      [PATCH] fix i2c module handling · 84fed9da
      Christoph Hellwig authored
      Add a struct module *owner field to struct i2c_adapter and i2c_algorithm
      and do refcouting on them before use instead of the inc_use and dec_use
      callbacks.  While at it convert those structures to named initializers.
      84fed9da
    • James Bottomley's avatar
      Merge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5 · 4075c99a
      James Bottomley authored
      into raven.il.steeleye.com:/home/jejb/BK/scsi-for-linus-2.5
      4075c99a
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/gregkh/linux/tty-2.5 · 8ef26e17
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      8ef26e17
    • Rusty Russell's avatar
      [PATCH] Minor compile fix for some modules. · ae52cf5c
      Rusty Russell authored
      Expose declaration of __this_module outside #ifdef KBUILD_MODNAME
      (which is not defined for objects included in two modules).
      ae52cf5c
    • Rusty Russell's avatar
      [PATCH] Fix MODULE_PARM for arrays of s. · be7a02dd
      Rusty Russell authored
      I interpreted "1-10s" to mean a string of 1-10 chars.  It actually
      means 1-10 comma-separated strings.
      be7a02dd
    • Christoph Hellwig's avatar
      [PATCH] get rid of TRUE/FALSE abuse in the scsi midlayer · 4d8a453b
      Christoph Hellwig authored
      Kernel codingsyle explicitly forbids it.  Fortunately there aren't many
      useres left.
      4d8a453b
  2. 29 Dec, 2002 5 commits