Permalink
Commits on Nov 17, 2007
  1. Linux 2.6.24-rc3

    Linus Torvalds committed Nov 17, 2007
  2. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/jmorris/selinux-2.6
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
      SELinux: return EOPNOTSUPP not ENOTSUPP
    Linus Torvalds committed Nov 17, 2007
  3. Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm

    * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm:
      [ARM] 4638/1: pxa: use PXA3xx specific macros to define clks
      [ARM] remove useless setting of VM_RESERVED
    Linus Torvalds committed Nov 17, 2007
  4. Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq

    * master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq:
      [CPUFREQ] Fix up whitespace in conservative governor.
      [CPUFREQ] Make cpufreq_conservative handle out-of-sync events properly
      [CPUFREQ] architectural pstate driver for powernow-k8
    Linus Torvalds committed Nov 17, 2007
Commits on Nov 16, 2007
  1. SELinux: return EOPNOTSUPP not ENOTSUPP

    ENOTSUPP is not a valid error code in the kernel (it is defined in some
    NFS internal error codes and has been improperly used other places).  In
    the !CONFIG_SECURITY_SELINUX case though it is possible that we could
    return this from selinux_audit_rule_init().  This patch just returns the
    userspace valid EOPNOTSUPP.
    
    Signed-off-by: Eric Paris <eparis@redhat.com>
    Signed-off-by: James Morris <jmorris@namei.org>
    eparis committed with James Morris Nov 16, 2007
  2. [ARM] 4638/1: pxa: use PXA3xx specific macros to define clks

    PXA3xx uses its own clk_pxa3xx_cken_ops, modify the code to use the
    PXA3xx specific macros to define its clocks
    
    Signed-off-by: eric miao <eric.miao@marvell.com>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    ericmiao committed with Russell King Oct 30, 2007
  3. dirty page balancing: Get rid of broken unmapped_ratio logic

    This code harks back to the days when we didn't count dirty mapped
    pages, which led us to try to balance the number of dirty unmapped pages
    by how much unmapped memory there was in the system.
    
    That makes no sense any more, since now the dirty counts include the
    mapped pages.  Not to mention that the math doesn't work with HIGHMEM
    machines anyway, and causes the unmapped_ratio to potentially turn
    negative (which we do catch thanks to clamping it at a minimum value,
    but I mention that as an indication of how broken the code is).
    
    The code also was written at a time when the default dirty ratio was
    much larger, and the unmapped_ratio logic effectively capped that large
    dirty ratio a bit.  Again, we've since lowered the dirty ratio rather
    aggressively, further lessening the point of that code.
    
    Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Linus Torvalds committed Nov 16, 2007
  4. Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/…

    …davem/net-2.6
    
    * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
      [NETFILTER]: Fix NULL pointer dereference in nf_nat_move_storage()
      [SUNHME]: VLAN support for sunhme
      [CHELSIO]: Fix skb->dev setting.
      [NETFILTER]: fix compat_nf_sockopt typo
      [INET]: Fix potential kfree on vmalloc-ed area of request_sock_queue
      [VIA_VELOCITY]: Don't oops on MTU change.
      iwl4965: fix not correctly dealing with hotunplug
      rt2x00: Fix chipset revision validation
      iwl3945: place CCK rates in front of OFDM for supported rates
      mac80211: Fix queuing of scan containing a SSID
    Linus Torvalds committed Nov 16, 2007
  5. Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-…

    …linus
    
    * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
      [MIPS] N32 needs to use the compat version of sys_nfsservctl.
      [MIPS] irq_cpu: use handle_percpu_irq handler to avoid dropping interrupts.
      [MIPS] Sibyte: Fix name of clocksource.
      [MIPS] SNI: s/achknowledge/acknowledge/
      [MIPS] Makefile: Fix canonical system names
      [MIPS] vpe: handle halting TCs in an errata safe way.
      [MIPS] Sibyte: Stop timers before programming next even.
      [MIPS] Sibyte: Increase minimum oneshot timer interval to two ticks.
      [MIPS] Lasat: Fix overlap of interrupt number ranges.
      [MIPS] SNI PCIT CPLUS: workaround for b0rked irq wiring of onboard PCI bus 1
      [MIPS] Fix shadow register support.
      [MIPS] Change get_cycles to always return 0.
      [MIPS] Fix typo in R3000 TRACE_IRQFLAGS code
      [MIPS] Sibyte: Replace use of removed IO_SPACE_BASE with IOADDR.
      [MIPS] iounmap if in vr41xx_pciu_init() pci clock is over 33MHz
      [MIPS] BCM1480: Remove duplicate acknowledge of timer interrupt.
      [MIPS] Sibyte: pin timer interrupt to their cores.
      [MIPS] Qemu: Add early printk, your friend in a cold night.
      [MIPS] Convert reference to mem_map to pfn_to_page().
      [MIPS] Sibyte: resurrect old cache hack.
    Linus Torvalds committed Nov 16, 2007
Commits on Nov 15, 2007
  1. [NETFILTER]: Fix NULL pointer dereference in nf_nat_move_storage()

    Reported by Chuck Ebbert as:
    
    	https://bugzilla.redhat.com/show_bug.cgi?id=259501#c14
    
    This routine is called each time hash should be replaced, nf_conn has
    extension list which contains pointers to connection tracking users
    (like nat, which is right now the only such user), so when replace takes
    place it should copy own extensions. Loop above checks for own
    extension, but tries to move higer-layer one, which can lead to above
    oops.
    
    Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Evgeniy Polyakov committed with davem330 Nov 15, 2007
  2. [SUNHME]: VLAN support for sunhme

    This patch enables VLAN support on sunhme by increasing BMAC_TXMAX/BMAC_RXMAX
    and allocating extra space via skb_put for the VLAN header.
     
    Signed-off-by: Chris Poon <dev-null@telus.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Chris Poon committed with davem330 Nov 15, 2007
  3. [MIPS] N32 needs to use the compat version of sys_nfsservctl.

    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 15, 2007
  4. [MIPS] irq_cpu: use handle_percpu_irq handler to avoid dropping inter…

    …rupts.
    
    This matters to any sort of device that is wired to one of the CPU
    interrupt pins on an SMP system.  Typically the scenario is most easily
    triggered with the count/compare timer interrupt where the same interrupt
    number and thus irq_desc is used on each processor.
    
       CPU A			CPU B
    
       do_IRQ()
       generic_handle_irq()
       handle_level_irq()
       spin_lock(desc_lock)
       set IRQ_INPROGRESS
       spin_unlock(desc_lock)
    				do_IRQ()
    				generic_handle_irq()
    				handle_level_irq()
    				spin_lock(desc_lock)
    				IRQ_INPROGRESS set => bail out
       spin_lock(desc_lock)
       clear IRQ_INPROGRESS
       spin_unlock(desc_lock)
    
    In case of the cp0 compare interrupt this means the interrupt will be
    acked and not handled or re-armed on CPU b, so there won't be any timer
    interrupt until the count register wraps around.
    
    With kernels 2.6.20 ... 2.6.23 we usually were lucky that things were just
    working right on VSMP because the count registers are synchronized on
    bootup so it takes something that disables interrupts for a long time on
    one processor to trigger this one.
    
    For scenarios where an interrupt is multicasted or broadcasted over several
    CPUs the existing code was safe and the fix will break it.  There is no
    way to know in the interrupt controller code because it is abstracted from
    the platform code.  I think we do not have such a setup currently, so this
    should be ok.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 15, 2007
  5. [MIPS] Sibyte: Fix name of clocksource.

    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 13, 2007
  6. [MIPS] SNI: s/achknowledge/acknowledge/

    Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Maciej W. Rozycki committed with ralfbaechle Nov 12, 2007
  7. [MIPS] Makefile: Fix canonical system names

    The GNU `config.guess' uses "linux-gnu" as the canonical system name.
    Fix the list of compiler prefixes checked to spell it correctly.
    
    Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Maciej W. Rozycki committed with ralfbaechle Nov 12, 2007
  8. [MIPS] vpe: handle halting TCs in an errata safe way.

    Adds a JR.HB after halting a TC, to ensure that the TC has really halted.
    only modifies the TCSTATUS register when the TC is safely halted.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Nigel Stephens committed with ralfbaechle Nov 8, 2007
  9. [MIPS] Sibyte: Stop timers before programming next even.

    We have no guarantee by the generic time code that the timer is stopped
    when the ->next_event method is called.  Modifying the Timer Initial Count
    register while the timer is enabled has UNPREDICTABLE effect according to
    the BCM1250/BCM1125/BCM1125H User Manual.  So stop the timer before
    reprogramming.
    
    This is a paranoia fix; no ill effects have been observed previously.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 11, 2007
  10. [MIPS] Sibyte: Increase minimum oneshot timer interval to two ticks.

    For the old minimum of a single tick a value of zero would be programmed
    into the init value register which in the BCM1250/BCM1125/BCM1125H User
    Manual in the Timer Special Cases section is documented to have
    UNPREDICTABLE effect.
    
    Observable sympthoms of this bug were hangs of several seconds on the
    console during bootup and later if both dyntick and highres timer options
    were activated.
    
    In theory contiguous mode of the timers is also affected but in an act of
    hopeless lack of realism I'll assume nobody will ever configure a KERNEL
    for HZ > 500kHz but if so I leave that to evolution to sort out.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 11, 2007
  11. [MIPS] Lasat: Fix overlap of interrupt number ranges.

    The range of MIPS_CPU IRQ and the range of LASAT IRQ overlap.
    
    Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Yoichi Yuasa committed with ralfbaechle Nov 9, 2007
  12. [MIPS] SNI PCIT CPLUS: workaround for b0rked irq wiring of onboard PC…

    …I bus 1
    
    Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Thomas Bogendoerfer committed with ralfbaechle Nov 8, 2007
  13. [MIPS] Fix shadow register support.

    Shadow register support would not possibly have worked on multicore
    systems.  The support code for it was also depending not on MIPS R2 but
    VSMP or SMTC kernels even though it makes perfect sense with UP kernels.
    
    SR sets are a scarce resource and the expected usage pattern is that
    users actually hardcode the register set numbers in their code.  So fix
    the allocator by ditching it.  Move the remaining CPU probe bits into
    the generic CPU probe.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 8, 2007
  14. [MIPS] Change get_cycles to always return 0.

    This avoids us executing an mfc0 c0_count instruction on processors which
    don't have but also on certain R4000 and R4400 versions where reading from
    the count register just in the very moment when its value equals
    c0_compare will result in the timer interrupt getting lost.
    
    There is still a number of users of get_cycles remaining outside the
    arch code:
    
    crypto/tcrypt.c:                start = get_cycles();
    crypto/tcrypt.c:                end = get_cycles();
    crypto/tcrypt.c:                start = get_cycles();
    crypto/tcrypt.c:                end = get_cycles();
    crypto/tcrypt.c:                start = get_cycles();
    crypto/tcrypt.c:                end = get_cycles();
    drivers/char/hangcheck-timer.c: return get_cycles();
    drivers/char/hangcheck-timer.c: printk("Hangcheck: Using get_cycles().\n");
    drivers/char/random.c:  sample.cycles = get_cycles();
    drivers/input/joystick/analog.c:#define GET_TIME(x)     do { x = get_cycles(); }
    include/linux/arcdevice.h:          _x = get_cycles(); \
    include/linux/arcdevice.h:          _y = get_cycles(); \
    mm/slub.c:      if (!s->defrag_ratio || get_cycles() % 1024 > s->defrag_ratio)
    mm/slub.c:      p += 64 + (get_cycles() & 0xff) * sizeof(void *);
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 8, 2007
  15. [MIPS] Fix typo in R3000 TRACE_IRQFLAGS code

    Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Atsushi Nemoto committed with ralfbaechle Nov 6, 2007
  16. [MIPS] Sibyte: Replace use of removed IO_SPACE_BASE with IOADDR.

    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 6, 2007
  17. [MIPS] iounmap if in vr41xx_pciu_init() pci clock is over 33MHz

    iounmap if pci clock is over 33MHz.  Cosmetic because the iomap() in this
    case is just a bit of address magic.
    
    Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
    Acked-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Roel Kluin committed with ralfbaechle Nov 4, 2007
  18. [MIPS] BCM1480: Remove duplicate acknowledge of timer interrupt.

    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 5, 2007
  19. [MIPS] Sibyte: pin timer interrupt to their cores.

    Or strange things will happen.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 5, 2007
  20. [MIPS] Qemu: Add early printk, your friend in a cold night.

    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 4, 2007
  21. [MIPS] Convert reference to mem_map to pfn_to_page().

    This was crashing the combination of highmem and sparsemem.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 4, 2007
  22. [MIPS] Sibyte: resurrect old cache hack.

    The recent switch of the Sibyte SOCs from the processor specific cache
    managment code in c-sb1.c to c-r4k.c lost this old hack
    
        [MIPS] Hack for SB1 cache issues
    
        Removing flush_icache_page a while ago broke SB1 which was using an empty
        flush_data_cache_page function.  This glues things well enough so a more
        efficient but also more intrusive solution can be found later.
    
        Signed-Off-By: Thiemo Seufer <ths@networkno.de>
        Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    
    in the hope it was no longer needed.  As it turns it still is so resurrect
    it until there is a better solution.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    ralfbaechle committed Nov 3, 2007
  23. [CHELSIO]: Fix skb->dev setting.

    eth_type_trans() now sets skb->dev.  Access skb->def after it gets
    set.
    
    Signed-off-by: Divy Le Ray <divy@chelsio.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Divy Le Ray committed with davem330 Nov 15, 2007
  24. [NETFILTER]: fix compat_nf_sockopt typo

    It should pass opt to the ->get/->set functions, not ops.
    
    Tested-by: Luca Tettamanti <kronos.it@gmail.com>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    kaber committed with davem330 Nov 15, 2007
  25. Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-s…

    …ched
    
    * git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched:
      sched: reorder SCHED_FEAT_ bits
      sched: make sched_nr_latency static
      sched: remove activate_idle_task()
      sched: fix __set_task_cpu() SMP race
      sched: fix SCHED_FIFO tasks & FAIR_GROUP_SCHED
      sched: fix accounting of interrupts during guest execution on s390
    Linus Torvalds committed Nov 15, 2007
  26. sched: reorder SCHED_FEAT_ bits

    reorder SCHED_FEAT_ bits so that the used ones come first. Makes
    tuning instructions easier.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Ingo Molnar committed Nov 15, 2007