1. 17 6月, 2009 35 次提交
    • J
    • F
      x86, io_apic.c: Work around compiler warning · 50a8d4d2
      Figo.zhang 提交于
      This compiler warning:
      
        arch/x86/kernel/apic/io_apic.c: In function ‘ioapic_write_entry’:
        arch/x86/kernel/apic/io_apic.c:466: warning: ‘eu’ is used uninitialized in this function
        arch/x86/kernel/apic/io_apic.c:465: note: ‘eu’ was declared here
      
      Is bogus as 'eu' is always initialized. But annotate it away by
      initializing the variable, to make it easier for people to notice
      real warnings. A compiler that sees through this logic will
      optimize away the initialization.
      Signed-off-by: NFigo.zhang <figo1802@gmail.com>
      LKML-Reference: <1245248720.3312.27.camel@myhost>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      50a8d4d2
    • C
      x86: mce: Don't touch THERMAL_APIC_VECTOR if no active APIC present · 5ce4243d
      Cyrill Gorcunov 提交于
      If APIC was disabled (for some reason) and as result
      it's not even mapped we should not try to enable thermal
      interrupts at all.
      Reported-by: NSimon Holm Thøgersen <odie@cs.aau.dk>
      Tested-by: NSimon Holm Thøgersen <odie@cs.aau.dk>
      Signed-off-by: NCyrill Gorcunov <gorcunov@openvz.org>
      LKML-Reference: <20090615182633.GA7606@lenovo>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      5ce4243d
    • A
      x86: mce: Handle banks == 0 case in K7 quirk · 203abd67
      Andi Kleen 提交于
      Vegard Nossum reported:
      
      > I get an MCE-related crash like this in latest linus tree:
      >
      > [    0.115341] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
      > [    0.116396] CPU: L2 Cache: 512K (64 bytes/line)
      > [    0.120570] mce: CPU supports 0 MCE banks
      > [    0.124870] BUG: unable to handle kernel NULL pointer dereference at 00000000 00000010
      > [    0.128001] IP: [<ffffffff813b98ad>] mcheck_init+0x278/0x320
      > [    0.128001] PGD 0
      > [    0.128001] Thread overran stack, or stack corrupted
      > [    0.128001] Oops: 0002 [#1] PREEMPT SMP
      > [    0.128001] last sysfs file:
      > [    0.128001] CPU 0
      > [    0.128001] Modules linked in:
      > [    0.128001] Pid: 0, comm: swapper Not tainted 2.6.30 #426
      > [    0.128001] RIP: 0010:[<ffffffff813b98ad>]  [<ffffffff813b98ad>] mcheck_init+0x278/0x320
      > [    0.128001] RSP: 0018:ffffffff81595e38  EFLAGS: 00000246
      > [    0.128001] RAX: 0000000000000010 RBX: ffffffff8158f900 RCX: 0000000000000000
      > [    0.128001] RDX: 0000000000000000 RSI: 00000000000000ff RDI: 0000000000000010
      > [    0.128001] RBP: ffffffff81595e68 R08: 0000000000000001 R09: 0000000000000000
      > [    0.128001] R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000
      > [    0.128001] R13: 00000000ffffffff R14: 0000000000000000 R15: 0000000000000000
      > [    0.128001] FS:  0000000000000000(0000) GS:ffff880002288000(0000) knlGS:00000
      > 00000000000
      > [    0.128001] CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
      > [    0.128001] CR2: 0000000000000010 CR3: 0000000001001000 CR4: 00000000000006b0
      > [    0.128001] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      > [    0.128001] DR3: 0000000000000000 DR6: 0000000000000000 DR7: 0000000000000000
      > [    0.128001] Process swapper (pid: 0, threadinfo ffffffff81594000, task ffffff
      > ff8152a4a0)
      > [    0.128001] Stack:
      > [    0.128001]  0000000081595e68 5aa50ed3b4ddbe6e ffffffff8158f900 ffffffff8158f
      > 914
      > [    0.128001]  ffffffff8158f948 0000000000000000 ffffffff81595eb8 ffffffff813b8
      > 69c
      > [    0.128001]  5aa50ed3b4ddbe6e 00000001078bfbfd 0000062300000800 5aa50ed3b4ddb
      > e6e
      > [    0.128001] Call Trace:
      > [    0.128001]  [<ffffffff813b869c>] identify_cpu+0x331/0x392
      > [    0.128001]  [<ffffffff815a1445>] identify_boot_cpu+0x23/0x6e
      > [    0.128001]  [<ffffffff815a14ac>] check_bugs+0x1c/0x60
      > [    0.128001]  [<ffffffff8159c075>] start_kernel+0x403/0x46e
      > [    0.128001]  [<ffffffff8159b2ac>] x86_64_start_reservations+0xac/0xd5
      > [    0.128001]  [<ffffffff8159b3ea>] x86_64_start_kernel+0x115/0x14b
      > [    0.128001]  [<ffffffff8159b140>] ? early_idt_handler+0x0/0x71
      
      This happens on QEMU which reports MCA capability, but no banks.
      Without this patch there is a buffer overrun and boot ops because
      the code would try to initialize the 0 element of a zero length
      kmalloc() buffer.
      Reported-by: NVegard Nossum <vegard.nossum@gmail.com>
      Tested-by: NPekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      LKML-Reference: <20090615125200.GD31969@one.firstfloor.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      203abd67
    • I
      Merge branch 'linus' into x86/urgent · cc4949e1
      Ingo Molnar 提交于
      Merge reason: pull in latest to fix a bug in it.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      cc4949e1
    • H
      x86, boot: use .code16gcc instead of .code16 · 28b48688
      H. Peter Anvin 提交于
      Use .code16gcc to compile arch/x86/boot/bioscall.S rather than
      .code16, since some older versions of binutils can't generate 32-bit
      addressing expressions (67 prefixes) in .code16 mode, only in
      .code16gcc mode.
      Reported-by: NTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      28b48688
    • C
      x86: correct the conversion of EFI memory types · e2a71476
      Cliff Wickman 提交于
      This patch causes all the EFI_RESERVED_TYPE memory reservations to be recorded
      in the e820 table as type E820_RESERVED.
      
      (This patch replaces one called 'x86: vendor reserved memory type'.
       This version has been discussed a bit with Peter and Yinghai but not given
       a final opinion.)
      
      Without this patch EFI_RESERVED_TYPE memory reservations may be
      marked usable in the e820 table. There may be a collision between
      kernel use and some reserver's use of this memory.
      
      (An example use of this functionality is the UV system, which
       will access extremely large areas of memory with a memory engine
       that allows a user to address beyond the processor's range.  Such
       areas are reserved in the EFI table by the BIOS.
       Some loaders have a restricted number of entries possible in the e820 table,
       hence the need to record the reservations in the unrestricted EFI table.)
      
      The call to do_add_efi_memmap() is only made if "add_efi_memmap" is specified
      on the kernel command line.
      Signed-off-by: NCliff Wickman <cpw@sgi.com>
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      e2a71476
    • H
      x86: cap iomem_resource to addressable physical memory · 95ee14e4
      H. Peter Anvin 提交于
      iomem_resource is by default initialized to -1, which means 64 bits of
      physical address space if 64-bit resources are enabled.  However, x86
      CPUs cannot address 64 bits of physical address space.  Thus, we want
      to cap the physical address space to what the union of all CPU can
      actually address.
      
      Without this patch, we may end up assigning inaccessible values to
      uninitialized 64-bit PCI memory resources.
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      Cc: Matthew Wilcox <matthew@wil.cx>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Cc: Martin Mares <mj@ucw.cz>
      Cc: stable@kernel.org
      95ee14e4
    • L
      Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2 · 300df7dc
      Linus Torvalds 提交于
      * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2:
        ocfs2/net: Use wait_event() in o2net_send_message_vec()
        ocfs2: Adjust rightmost path in ocfs2_add_branch.
        ocfs2: fdatasync should skip unimportant metadata writeout
        ocfs2: Remove redundant gotos in ocfs2_mount_volume()
        ocfs2: Add statistics for the checksum and ecc operations.
        ocfs2 patch to track delayed orphan scan timer statistics
        ocfs2: timer to queue scan of all orphan slots
        ocfs2: Correct ordering of ip_alloc_sem and localloc locks for directories
        ocfs2: Fix possible deadlock in quota recovery
        ocfs2: Fix possible deadlock with quotas in ocfs2_setattr()
        ocfs2: Fix lock inversion in ocfs2_local_read_info()
        ocfs2: Fix possible deadlock in ocfs2_global_read_dquot()
        ocfs2: update comments in masklog.h
        ocfs2: Don't printk the error when listing too many xattrs.
      300df7dc
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 · 661adc42
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
        ALSA: ctxfi - Fix deadlock with xfi-timer
        ALSA: intel8x0 - Fix PCM position craziness
        ALSA: usb-audio - rework quirk for TerraTec Aureon USB 5.1 MkII
        ASoC: magician: fix PXA SSP clock polarity
        ASoC: Instantiate any forgotten DAPM widgets
        ASoC: Revert duplicated code in SSM2602 driver
        ALSA: hda - Add quirk for Acer Aspire 6935G
        ALSA: ctxfi - Replace atc lock to mutex
        ASoC: Remove odd bit clock ratios for WM8903
      661adc42
    • L
      Merge branch 'serial' · 15bdb565
      Linus Torvalds 提交于
      * serial:
        imx: Check for NULL pointer deref before calling tty_encode_baud_rate
        atmel_serial: fix hang in set_termios when crtscts is enabled
        MAINTAINERS: update 8250 section, give Alan Cox a name
        tty: fix sanity check
        pty: Narrow the race on ldisc locking
        tty: fix unused warning when TCGETX is not defined
        ldisc: debug aids
        ldisc: Make sure the ldisc isn't active when we close it
        tty: Fix leaks introduced by the shift to separate ldisc objects
      
      Fix conflicts in drivers/char/pty.c due to earlier version of the ldisc
      race narrowing.
      15bdb565
    • S
    • H
      atmel_serial: fix hang in set_termios when crtscts is enabled · 0ccad870
      Haavard Skinnemoen 提交于
      After enabling hardware flow control, any subsequent termios call may hang
      waiting for the transmitter to drain.  This appears to be caused by a
      busy-loop in set_termios() waiting for the transmitter to become empty,
      which may take a very long time (or hang indefinitely) if the device at
      the other end is blocking us.
      
      A quick look through the tty and serial_core code indicates that any
      necessary flushing (which is optional) has already been done at this
      point, so there's no need for the driver to flush the transmitter on its
      own.
      
      Fix it by removing the busy-loop altogether.
      Tested-by: NEirik Aanonsen <eaa@wprmedical.com>
      Signed-off-by: NHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0ccad870
    • J
    • A
      tty: fix sanity check · 1aa4bed8
      Alan Cox 提交于
      The WARN_ON() that was added to tty_reopen can be triggered in the specific
      case of a hangup occurring during a re-open of a tty which is not in the
      middle of being otherwise closed.
      
      In that case however the WARN() is bogus as we don't hold the neccessary
      locks to make a correct decision.
      
      The case we should be checking is "if the ldisc is not changing and reopen
      is occuring". We could drop the WARN_ON but for the moment the debug is more
      valuable even if it means taking a mutex as it will find any other cases.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1aa4bed8
    • A
      pty: Narrow the race on ldisc locking · 762faaed
      Alan Cox 提交于
      The pty code has always been buggy on its ldisc handling. The recent
      changes made the window for the race much bigger. Pending fixing it
      properly which is not at all trivial, at least make the race small again so
      we don't disrupt other dev work.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      762faaed
    • M
      tty: fix unused warning when TCGETX is not defined · 5dca607b
      Mike Frysinger 提交于
      If TCGETX is not defined, we end up with this warning:
      drivers/char/tty_ioctl.c: In function ‘tty_mode_ioctl’:
      drivers/char/tty_ioctl.c:950: warning: unused variable ‘ktermx’
      
      Since the variable is only used in one case statement, push it down to
      the local case scope.
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5dca607b
    • A
      ldisc: debug aids · 677ca306
      Alan Cox 提交于
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      677ca306
    • A
    • A
      tty: Fix leaks introduced by the shift to separate ldisc objects · 8d2ead74
      Alan Cox 提交于
      Gold star for the kmemleak detector.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8d2ead74
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next-2.6 · 98523d46
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next-2.6: (30 commits)
        sparc64: Update defconfig.
        sparc: Wire up sys_rt_tgsigqueueinfo().
        openprom: Squelch useless GCC warning.
        sparc: replace uses of CPU_MASK_ALL_PTR
        sparc64: Add proper dynamic ftrace support.
        sparc: Simplify code using is_power_of_2() routine.
        sparc: move of_device common code to of_device_common
        sparc: remove dma-mapping_{32|64}.h
        sparc: use dma_map_page instead of dma_map_single
        sparc: add sync_single_for_device and sync_sg_for_device to struct dma_ops
        sparc: move the duplication in dma-mapping_{32|64}.h to dma-mapping.h
        p9100: use standard fields for framebuffer physical address and length
        leo: use standard fields for framebuffer physical address and length
        cg6: use standard fields for framebuffer physical address and length
        cg3: use standard fields for framebuffer physical address and length
        cg14: use standard fields for framebuffer physical address and length
        bw2: use standard fields for framebuffer physical address and length
        sparc64: fix and optimize irq distribution
        sparc64: Use new dynamic per-cpu allocator.
        sparc64: Only allocate per-cpu areas for possible cpus.
        ...
      98523d46
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin · 8d6cea51
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin: (27 commits)
        Blackfin: hook up new rt_tgsigqueueinfo syscall
        Blackfin: improve CLKIN_HZ config default
        Blackfin: initial support for ftrace grapher
        Blackfin: initial support for ftrace
        Blackfin: enable support for LOCKDEP
        Blackfin: add preliminary support for STACKTRACE
        Blackfin: move custom sections into sections.h
        Blackfin: punt unused/wrong mutex-dec.h
        Blackfin: add support for irqflags
        Blackfin: add support for bzip2/lzma compressed kernel images
        Blackfin: convert Kconfig style to def_bool
        Blackfin: bf548-ezkit: update smsc911x resources
        Blackfin: update aedos-ipipe code to upstream 1.10-00
        Blackfin: bf537-stamp: update ADP5520 resources
        Blackfin: bf518f-ezbrd: fix SPI CS for SPI flash
        Blackfin: define SPI IRQ in board resources
        Blackfin: do not configure the UART early if on wrong processor
        Blackfin: fix deadlock in SMP IPI handler
        Blackfin: fix flag storage for irq funcs
        Blackfin: push down exception oops checking
        ...
      8d6cea51
    • L
      Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 · 6a454f71
      Linus Torvalds 提交于
      * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: (33 commits)
        [S390] s390: hibernation support for s390
        [S390] pm: dcssblk power management callbacks.
        [S390] pm: monreader power management callbacks.
        [S390] pm: monwriter power management callbacks.
        [S390] pm: memory hotplug power management callbacks
        [S390] pm: con3270 power management callbacks.
        [S390] pm: smsgiucv power management callbacks.
        [S390] pm: hvc_iucv power management callbacks
        [S390] PM: af_iucv power management callbacks.
        [S390] pm: netiucv power management callbacks.
        [S390] pm: iucv power management callbacks.
        [S390] iucv: establish reboot notifier
        [S390] pm: power management support for SCLP drivers.
        [S390] pm: tape power management callbacks
        [S390] pm: vmlogrdr power management callbacks
        [S390] pm: vmur driver power management callbacks
        [S390] pm: appldata power management callbacks
        [S390] pm: vmwatchdog power management callbacks.
        [S390] pm: zfcp driver power management callbacks
        [S390] pm: claw driver power management callbacks
        ...
      6a454f71
    • L
      Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block · d613839e
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
        block: remove some includings of blktrace_api.h
        mg_disk: seperate mg_disk.h again
        block: Introduce helper to reset queue limits to default values
        cfq: remove extraneous '\n' in blktrace output
        ubifs: register backing_dev_info
        btrfs: properly register fs backing device
        block: don't overwrite bdi->state after bdi_init() has been run
        cfq: cleanup for last_end_request in cfq_data
      d613839e
    • L
      Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · 609106b9
      Linus Torvalds 提交于
      * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (38 commits)
        ps3flash: Always read chunks of 256 KiB, and cache them
        ps3flash: Cache the last accessed FLASH chunk
        ps3: Replace direct file operations by callback
        ps3: Switch ps3_os_area_[gs]et_rtc_diff to EXPORT_SYMBOL_GPL()
        ps3: Correct debug message in dma_ioc0_map_pages()
        drivers/ps3: Add missing annotations
        ps3fb: Use ps3_system_bus_[gs]et_drvdata() instead of direct access
        ps3flash: Use ps3_system_bus_[gs]et_drvdata() instead of direct access
        ps3: shorten ps3_system_bus_[gs]et_driver_data to ps3_system_bus_[gs]et_drvdata
        ps3: Use dev_[gs]et_drvdata() instead of direct access for system bus devices
        block/ps3: remove driver_data direct access of struct device
        ps3vram: Make ps3vram_priv.reports a void *
        ps3vram: Remove no longer used ps3vram_priv.ddr_base
        ps3vram: Replace mutex by spinlock + bio_list
        block: Add bio_list_peek()
        powerpc: Use generic atomic64_t implementation on 32-bit processors
        lib: Provide generic atomic64_t implementation
        powerpc: Add compiler memory barrier to mtmsr macro
        powerpc/iseries: Mark signal_vsp_instruction() as maybe unused
        powerpc/iseries: Fix unused function warning in iSeries DT code
        ...
      609106b9
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable · 69257cae
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable:
        Btrfs: always update root items for fs trees at commit time
      69257cae
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/hirofumi/fatfs-2.6 · 23059a0d
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/hirofumi/fatfs-2.6:
        fat: split fat_generic_ioctl
        FAT: add 'errors' mount option
      23059a0d
    • L
      Merge branch 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging · 4858704d
      Linus Torvalds 提交于
      * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
        therm_windtunnel: Convert to a new-style i2c driver
        therm_adt746x: Convert to a new-style i2c driver
        windfarm: Convert to new-style i2c drivers
        therm_pm72: Convert to a new-style i2c driver
        i2c-viapro: Add new PCI device ID for VX855
        i2c/chips: Move max6875 to drivers/misc/eeprom
        i2c: Do not give adapters a default parent
        i2c: Do not probe for TV chips on Voodoo3 adapters
        i2c: Retry automatically on arbitration loss
        i2c: Remove void casts
      4858704d
    • L
      Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging · 86ade88e
      Linus Torvalds 提交于
      * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
        hwmon: (max6650) Add support for alarms
        hwmon: (f71882fg) Add support for the F71858F
        hwmon: (f71882fg) Add temp#_fault sysfs attr for f8000
        hwmon: (f71882fg) Sanity check f8000 pwm settings
        hwmon: (f71882fg) Cleanup f8000 pwm handling
        hwmon: PCI quirk for hwmon access on MSI MS-7031 board
        hwmon: (w83627ehf) Add W83627DHG-P support
        hwmon: (tmp401) Add documentation
        hwmon: (tmp401) Add support for TI's TMP411 sensors chip
        hwmon: (tmp401) Add support for TI's TMP401 sensor chip
        hwmon: (ibmaem) Automatically load on HC10 blade
        hwmon: Fix more __devexit_p glitches
      86ade88e
    • L
      Merge branch 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 · 9bd47bf9
      Linus Torvalds 提交于
      * 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (27 commits)
        ACPICA: Update version to 20090521.
        ACPICA: Disable preservation of SCI enable bit (SCI_EN)
        ACPICA: Region deletion: Ensure region object is removed from handler list
        ACPICA: Eliminate extra call to NsGetParentNode
        ACPICA: Simplify internal operation region interface
        ACPICA: Update Load() to use operation region interfaces
        ACPICA: New: AcpiInstallMethod - install a single control method
        ACPICA: Invalidate DdbHandle after table unload
        ACPICA: Fix reference count issues for DdbHandle object
        ACPICA: Simplify and optimize NsGetNextNode function
        ACPICA: Additional validation of _PRT packages (resource mgr)
        ACPICA: Fix DebugObject output for DdbHandle objects
        ACPICA: Fix allowable release order for ASL mutex objects
        ACPICA: Mutex support: Fix release ordering issue and current sync level
        ACPICA: Update version to 20090422.
        ACPICA: Linux OSL: cleanup/update/merge
        ACPICA: Fix implementation of AML BreakPoint operator (break to debugger)
        ACPICA: Fix miscellaneous warnings under gcc 4+
        ACPICA: Miscellaneous lint changes
        ACPICA: Fix possible dereference of null pointer
        ...
      9bd47bf9
    • A
      tty: Fix leaks introduced by the shift to separate ldisc objects · 46a50661
      Alan Cox 提交于
      Gold star for the kmemleak detector.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      46a50661
    • A
      pty: Narrow the race on ldisc locking · cbcb6d66
      Alan Cox 提交于
      The pty code has always been buggy on its ldisc handling. The recent
      changes made the window for the race much bigger. Pending fixing it
      properly which is not at all trivial, at least make the race small again so
      we don't disrupt other dev work.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cbcb6d66
    • L
      printk: add KERN_DEFAULT loglevel to print_modules() · b231125a
      Linus Torvalds 提交于
      Several WARN_ON() messages omit the '\n' at the end of the string, which
      is a simple (and understandable) error.  The next line printed after
      that warning line is usually the current module list, and that printk
      does not have a log-level marker - resulting in one long mixed-up line.
      
      Adding this loglevel marker will now avoid this unreadable mess.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b231125a
    • L
      printk: Add KERN_DEFAULT printk log-level · e28d7137
      Linus Torvalds 提交于
      This adds a KERN_DEFAULT loglevel marker, for when you cannot decide
      which loglevel you want, and just want to keep an existing printk
      with the default loglevel.
      
      The difference between having KERN_DEFAULT and having no log-level
      marker at all is two-fold:
      
       - having the log-level marker will now force a new-line if the
         previous printout had not added one (perhaps because it forgot,
         but perhaps because it expected a continuation)
      
       - having a log-level marker is required if you are printing out a
         message that otherwise itself could perhaps otherwise be mistaken
         for a log-level.
      Signed-of-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e28d7137
    • L
      printk: clean up handling of log-levels and newlines · 5fd29d6c
      Linus Torvalds 提交于
      It used to be that we would only look at the log-level in a printk()
      after explicit newlines, which can cause annoying problems when the
      previous printk() did not end with a '\n'. In that case, the log-level
      marker would be just printed out in the middle of the line, and be
      seen as just noise rather than change the logging level.
      
      This changes things to always look at the log-level in the first
      bytes of the printout. If a log level marker is found, it is always
      used as the log-level. Additionally, if no newline existed, one is
      added (unless the log-level is the explicit KERN_CONT marker, to
      explicitly show that it's a continuation of a previous line).
      Acked-by: NArjan van de Ven <arjan@infradead.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5fd29d6c
  2. 16 6月, 2009 5 次提交