04 Mar, 2011

1 commit


30 Nov, 2010

12 commits


09 Feb, 2010

1 commit


24 Nov, 2009

1 commit

  • The ioctl is only used for powermac systems and reads a partition
    number from an array which is initialized at boot time way before the
    nvram code is initialized. So it's safe to switch to unlocked_ioctl.

    Signed-off-by: Thomas Gleixner
    Cc: Benjamin Herrenschmidt
    Cc: linuxppc-dev@ozlabs.org
    Signed-off-by: Benjamin Herrenschmidt

    Thomas Gleixner
     

30 Oct, 2009

3 commits


17 Aug, 2007

3 commits

  • Eliminate the use of error_log_cnt as a global var shared across
    different directories. Pass it as a parameter instead.

    Signed-off-by: Linas Vepstas

    ----

    Respin of earlier patch, with the CONFIG_PSERIES junk removed from the
    header file.

    arch/powerpc/kernel/nvram_64.c | 10 +++++-----
    arch/powerpc/platforms/pseries/rtasd.c | 7 ++++---
    include/asm-powerpc/nvram.h | 6 ++++--
    3 files changed, 13 insertions(+), 10 deletions(-)
    Signed-off-by: Paul Mackerras

    Linas Vepstas
     
  • Get rid of the jumbled usage of the no_logging flag. Its use
    spans several directories, and is incorrectly/misleadingly
    documented. Instead, two changes:
    1) nvram will accept error log as soon as its ready.
    2) logging to nvram stops on the first fatal error reported.

    Signed-off-by: Linas Vepstas

    ----
    arch/powerpc/kernel/nvram_64.c | 8 --------
    arch/powerpc/platforms/pseries/rtasd.c | 14 ++++++--------
    2 files changed, 6 insertions(+), 16 deletions(-)
    Signed-off-by: Paul Mackerras

    Linas Vepstas
     
  • Forward declarations serve no purpose in this file.

    Signed-off-by: Linas Vepstas

    ----

    arch/powerpc/kernel/nvram_64.c | 5 -----
    1 file changed, 5 deletions(-)
    Signed-off-by: Paul Mackerras

    Linas Vepstas
     

13 Feb, 2007

1 commit

  • Many struct file_operations in the kernel can be "const". Marking them const
    moves these to the .rodata section, which avoids false sharing with potential
    dirty data. In addition it'll catch accidental writes at compile time to
    these shared resources.

    [akpm@osdl.org: sparc64 fix]
    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

14 Dec, 2006

1 commit

  • Run this:

    #!/bin/sh
    for f in $(grep -Erl "\([^\)]*\) *k[cmz]alloc" *) ; do
    echo "De-casting $f..."
    perl -pi -e "s/ ?= ?\([^\)]*\) *(k[cmz]alloc) *\(/ = \1\(/" $f
    done

    And then go through and reinstate those cases where code is casting pointers
    to non-pointers.

    And then drop a few hunks which conflicted with outstanding work.

    Cc: Russell King , Ian Molton
    Cc: Mikael Starvik
    Cc: Yoshinori Sato
    Cc: Roman Zippel
    Cc: Geert Uytterhoeven
    Cc: Ralf Baechle
    Cc: Paul Mackerras
    Cc: Kyle McMartin
    Cc: Benjamin Herrenschmidt
    Cc: Martin Schwidefsky
    Cc: "David S. Miller"
    Cc: Jeff Dike
    Cc: Greg KH
    Cc: Jens Axboe
    Cc: Paul Fulghum
    Cc: Alan Cox
    Cc: Karsten Keil
    Cc: Mauro Carvalho Chehab
    Cc: Jeff Garzik
    Cc: James Bottomley
    Cc: Ian Kent
    Cc: Steven French
    Cc: David Woodhouse
    Cc: Neil Brown
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert P. J. Day
     

29 Apr, 2006

1 commit

  • This is a cosmetic fixup. When printing the nvram partition table, the
    first couple entries have a shorter 'index' value than the others, so
    table is a bit askew. This change makes the table look pretty.
    Tested on pseries and g5. Footnote: yes, this table is normally hidden
    behind a DEBUG_NVRAM #define.

    Signed-off-by: Will Schmidt
    Signed-off-by: Paul Mackerras

    Will Schmidt
     

28 Mar, 2006

1 commit

  • This removes statically assigned platform numbers and reworks the
    powerpc platform probe code to use a better mechanism. With this,
    board support files can simply declare a new machine type with a
    macro, and implement a probe() function that uses the flattened
    device-tree to detect if they apply for a given machine.

    We now have a machine_is() macro that replaces the comparisons of
    _machine with the various PLATFORM_* constants. This commit also
    changes various drivers to use the new macro instead of looking at
    _machine.

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

    Benjamin Herrenschmidt
     

27 Mar, 2006

1 commit


09 Jan, 2006

1 commit


18 Nov, 2005

1 commit