12 Jun, 2008

3 commits

  • timespec_add_ns is used from the x86-64 vdso, which cannot call out to
    other kernel code. Make sure that timespec_add_ns is always inlined
    (and only uses always_inlined functions) to make sure there are no
    unexpected calls.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge
     
  • iter_div_u64_rem is used in the x86-64 vdso, which cannot call other
    kernel code. For this case, provide the always_inlined version,
    __iter_div_u64_rem.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge
     
  • We have a few instances of the open-coded iterative div/mod loop, used
    when we don't expcet the dividend to be much bigger than the divisor.
    Unfortunately modern gcc's have the tendency to strength "reduce" this
    into a full mod operation, which isn't necessarily any faster, and
    even if it were, doesn't exist if gcc implements it in libgcc.

    The workaround is to put a dummy asm statement in the loop to prevent
    gcc from performing the transformation.

    This patch creates a single implementation of this loop, and uses it
    to replace the open-coded versions I know about.

    Signed-off-by: Jeremy Fitzhardinge
    Cc: Andrew Morton
    Cc: john stultz
    Cc: Segher Boessenkool
    Cc: Christian Kujau
    Cc: Robert Hancock
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge
     

10 Jun, 2008

13 commits


09 Jun, 2008

12 commits

  • I think that hda_verb array must have "terminator (empty array)".
    But alc262_sony_unsol[] does not have it.
    And it causes gcc-4.3's buggy behavior
    with snd_hda_sequence_write().

    Signed-off-by: Akio Idehara
    Signed-off-by: Takashi Iwai

    Akio Idehara
     
  • Presently the --fdpic specifier and the --isa matching clash when
    building with FDPIC toolchains. As we have no interest in building the
    kernel with --fdpic in the first place, always try to add in -mno-fdpic
    to the default flags.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Signed-off-by: Yoshihiro Shimoda
    Signed-off-by: Paul Mundt

    Yoshihiro Shimoda
     
  • R8A66597 is similar to SH7723 USB 2.0 Host/Function module.
    In addition, the USB of SH7366 is compatible with SH7723.
    It can support SH7723 USB host by changing Kconfig.

    Signed-off-by: Yoshihiro Shimoda
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Paul Mundt

    Yoshihiro Shimoda
     
  • SH7763's setup code use old DECLARE_INTC_DESC.
    There was a compile error because of this.

    Signed-off-by: Nobuhiro Iwamatsu
    Signed-off-by: Paul Mundt

    Nobuhiro Iwamatsu
     
  • Signed-off-by: Yusuke Goda
    Signed-off-by: Paul Mundt

    Yusuke.Goda
     
  • Now that walk_memory_resource() is available regardless of
    MEMORY_HOTPLUG's setting, this dependency is not needed.

    Signed-off-by: Nathan Lynch
    Acked-by: Jeff Garzik
    Acked-by: Yasunori Goto
    Signed-off-by: Paul Mackerras

    Nathan Lynch
     
  • The ehea driver was recently changed[1] to use walk_memory_resource() to
    detect the system's memory layout. However, walk_memory_resource() is
    available only when memory hotplug is enabled. So CONFIG_EHEA was
    made to depend on MEMORY_HOTPLUG [2], but it is inappropriate for a
    network driver to have such a dependency.

    Make the declaration of walk_memory_resource() and its powerpc
    implementation (ehea is powerpc-specific) unconditionally available.

    [1] 48cfb14f8b89d4d5b3df6c16f08b258686fb12ad
    "ehea: Add DLPAR memory remove support"

    [2] fb7b6ca2b6b7c23b52be143bdd5f55a23b9780c8
    "ehea: Add dependency to Kconfig"

    Signed-off-by: Nathan Lynch
    Acked-by: Badari Pulavarty
    Signed-off-by: Paul Mackerras

    Nathan Lynch
     
  • During the next merge window, pci_name()'s return value will become
    const, so use the new dev_set_name() instead to avoid the warning (from
    linux-next):

    arch/powerpc/kernel/pci_64.c: In function 'of_create_pci_dev':
    arch/powerpc/kernel/pci_64.c:193: warning: passing argument 1 of 'sprintf' discards qualifiers from pointer target type

    Cc: Kay Sievers
    Cc: Greg KH
    Signed-off-by: Stephen Rothwell
    Signed-off-by: Paul Mackerras

    Stephen Rothwell
     
  • When building a signal or a ucontext, we can incorrectly set the MSR_VEC
    bit of the kernel pt_regs->msr before returning to userspace if the task
    -ever- used VMX.

    This can lead to funny result if that stack used it in the past, then
    "lost" it (ie. it wasn't enabled after a context switch for example)
    and then called get_context. It can end up with VMX enabled and the
    registers containing values from some other task.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     
  • This corrects the names of two CONFIG_ variables.

    Note that the CONFIG_MPC86XADS fix uncovers another bug
    (with mpc866_ads_defconfig) that will require fixing:

    ...
    arch/powerpc/boot/dtc -O dtb -o arch/powerpc/boot/mpc866ads.dtb -b 0 /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/powerpc/boot/dts/mpc866ads.dts
    DTC: dts->dtb on file "/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/powerpc/boot/dts/mpc866ads.dts"
    WRAP arch/powerpc/boot/cuImage.mpc866ads
    powerpc64-linux-ld: arch/powerpc/boot/cuboot-mpc866ads.o: No such file: No such file or directory
    make[2]: *** [arch/powerpc/boot/cuImage.mpc866ads] Error 1

    Reported-by: Robert P. J. Day
    Signed-off-by: Adrian Bunk
    Signed-off-by: Paul Mackerras

    Adrian Bunk
     
  • Commit 73f20e58b1d586e9f6d3ddc3aad872829aca7743 ("FAT_VALID_MEDIA():
    remove pointless test") wrongly added the new fat_valid_media() function
    to the userspace-visible part of include/linux/msdos_fs.h

    Move it to the part of include/linux/msdos_fs.h that is not exported to
    userspace.

    Reported-by: Onur Küçük
    Reported-by: S.Çağlar Onur
    Signed-off-by: Adrian Bunk
    Acked-by: OGAWA Hirofumi
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

07 Jun, 2008

12 commits