10 Jun, 2011

20 commits


09 Jun, 2011

20 commits

  • int i is only needed if CONFIG_ACPI is set
    so move it within a new ifdef so kernels without ACPI
    don't allocate space for nothing. Fixes warning too.

    Signed-off-by: Connor Hansen
    Signed-off-by: Peter Jones
    [v2: Fixed warning when CONFIG_ACPI was defined]
    Signed-off-by: Konrad Rzeszutek Wilk

    Connor Hansen
     
  • This patch silences a Makefile.asm-generic message
    by defining a dummy rule for all.

    make -f /usr/src/git/scripts/Makefile.asm-generic \
    obj=arch/x86/include/generated/asm
    make[1]: Nothing to be done for `all'.

    Signed-off-by: Peter Foley
    Signed-off-by: Michal Marek

    Peter Foley
     
  • The patch adds one-line asm-generic files in arch/unicore32/include/asm/Kbuild
    Also, remove the old implementation in arch/unicore32/Makefile
    see commit from Sam Ravnborg
    kbuild: asm-generic support

    Signed-off-by: Guan Xuetao
    Acked-by: Arnd Bergmann

    Guan Xuetao
     
  • The patch changes PERCPU to PERCPU_SECTION
    see commit from Tejun Heo
    percpu: Always align percpu output section to PAGE_SIZE

    Signed-off-by: Guan Xuetao
    Acked-by: Tejun Heo

    Guan Xuetao
     
  • Rename debug_defconfig to unicore32_defconfig, which is a minimal config for
    PKUnity-v3 (130nm) SoC board.
    Also, add KBUILD_DEFCONFIG to use 'make defconfig'.

    Signed-off-by: Guan Xuetao
    Acked-by: Arnd Bergmann

    Guan Xuetao
     
  • U-boot will load the kernel image to 48M physical memory address.
    The patch changes it to the correct address, though it's PIC codes.

    Signed-off-by: Guan Xuetao
    Acked-by: Arnd Bergmann

    Guan Xuetao
     
  • The patch moves rtc driver for PKUnity-v3 SoC from arch/unicore32/kernel/
    to drivers/rtc/, with renaming it to rtc-puv3.c.
    Also, Kconfig, Makefile, and MAINTAINERS are modified correspondingly.

    Signed-off-by: Guan Xuetao
    Acked-by: Arnd Bergmann

    Guan Xuetao
     
  • When using 64K pages with a separate cpio rootfs, U-Boot will align
    the rootfs on a 4K page boundary. When the memory is reserved, and
    subsequent early memblock_alloc is called, it will allocate memory
    between the 64K page alignment and reserved memory. When the reserved
    memory is subsequently freed, it is done so by pages, causing the
    early memblock_alloc requests to be re-used, which in my case, caused
    the device-tree to be clobbered.

    This patch forces the reserved memory for initrd to be kernel page
    aligned, and will move the device tree if it overlaps with the range
    extension of initrd. This patch will also consolidate the identical
    function free_initrd_mem() from mm/init_32.c, init_64.c to mm/mem.c,
    and adds the same range extension when freeing initrd. free_initrd_mem()
    is also moved to the __init section.

    Many thanks to Milton Miller for his input on this patch.

    [BenH: Fixed build without CONFIG_BLK_DEV_INITRD]

    Signed-off-by: Dave Carroll
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Benjamin Herrenschmidt

    Benjamin Herrenschmidt
     
  • Benjamin Herrenschmidt
     
  • Benjamin Herrenschmidt
     
  • dtc was moved and .gitignores have been added to the new location. So, we can
    delete the old, forgotten ones.

    Signed-off-by: Wolfram Sang
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Grant Likely

    Wolfram Sang
     
  • * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
    PM / Runtime: Fix loops in pm_runtime_clk_notify()
    PM / Intel IOMMU: Fix init_iommu_pm_ops() for CONFIG_PM unset

    Linus Torvalds
     
  • This tries to make the 'struct inode' accesses denser in the data cache
    by moving a commonly accessed field (i_security) closer to other fields
    that are accessed often.

    It also makes 'i_state' just an 'unsigned int' rather than 'unsigned
    long', since we only use a few bits of that field, and moves it next to
    the existing 'i_flags' so that we potentially get better structure
    layout (although depending on config options, i_flags may already have
    packed in the same word as i_lock, so this improves packing only for the
    case of spinlock debugging)

    Out 'struct inode' is still way too big, and we should probably move
    some other fields around too (the acl fields in particular) for better
    data cache access density. Other fields (like the inode hash) are
    likely to be entirely irrelevant under most loads.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • This is a rather hot function that is called with a potentially NULL
    "struct common_audit_data" pointer argument. And in that case it has to
    provide and initialize its own dummy common_audit_data structure.

    However, all the _common_ cases already pass it a real audit-data
    structure, so that uncommon NULL case not only creates a silly run-time
    test, more importantly it causes that function to have a big stack frame
    for the dummy variable that isn't even used in the common case!

    So get rid of that stupid run-time behavior, and make the (few)
    functions that currently call with a NULL pointer just call a new helper
    function instead (naturally called inode_has_perm_noapd(), since it has
    no adp argument).

    This makes the run-time test be a static code generation issue instead,
    and allows for a much denser stack since none of the common callers need
    the dummy structure. And a denser stack not only means less stack space
    usage, it means better cache behavior. So we have a win-win-win from
    this simplification: less code executed, smaller stack footprint, and
    better cache behavior.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (28 commits)
    MAINTAINERS: add a maintainer to Gadget Framework
    USB: serial: add another 4N-GALAXY.DE PID to ftdi_sio driver
    Revert "USB: option: add ID for ZTE MF 330"
    drivers/usb/host/ohci-pxa27x.c: add missing clk_put
    USB: CONFIG_USB_GADGET_DUALSPEED is not user-configurable
    USB: dummy-hcd needs the has_tt flag
    usb-storage: redo incorrect reads
    usb/renesas_usbhs: free uep on removal
    usb/s3c-hsudc: fix error path
    usb/pxa25x_udc: cleanup the LUBBOCK err path
    usb/mv_udc_core: fix compile
    usb: gadget: include to fix compiling error
    USB: s3c-hsotg: Tone down debugging
    usb: remove bad dput after dentry_unhash
    USB: core: Tolerate protocol stall during hub and port status read
    musb: fix prefetch build failure
    USB: cdc-acm: Adding second ACM channel support for Nokia E7 and C7
    usb-gadget: unlock data->lock mutex on error path in ep_write()
    USB: option Add blacklist for ZTE K3765-Z (19d2:2002)
    option: add Prolink PH300 modem IDs
    ...

    Linus Torvalds
     
  • I'll be continuing the amazing work Dave has
    done with the Gadget Framework.

    Signed-off-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Felipe Balbi
     
  • * 'spi/merge' of git://git.secretlab.ca/git/linux-2.6:
    spi/rtc-m41t93: Use spi_get_drvdata() for SPI devices
    spi/omap2: fix uninitialized variable

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    cifs: trivial: add space in fsc error message
    cifs: silence printk when establishing first session on socket
    CIFS ACL support needs CONFIG_KEYS, so depend on it
    possible memory corruption in cifs_parse_mount_options()
    cifs: make CIFS depend on CRYPTO_ECB
    cifs: fix the kernel release version in the default security warning message

    Linus Torvalds
     
  • This is needed to get the following MAINTAINERS patch to apply properly.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • E.g. newer CAN 2.0 A/B USB 2.0 converters report idProduct=f3c2.

    Signed-off-by: Steffen Sledz
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Steffen Sledz