31 Mar, 2011

1 commit


08 Mar, 2010

1 commit

  • Constify struct sysfs_ops.

    This is part of the ops structure constification
    effort started by Arjan van de Ven et al.

    Benefits of this constification:

    * prevents modification of data that is shared
    (referenced) by many other structure instances
    at runtime

    * detects/prevents accidental (but not intentional)
    modification attempts on archs that enforce
    read-only kernel data at runtime

    * potentially better optimized code as the compiler
    can assume that the const data cannot be changed

    * the compiler/linker move const data into .rodata
    and therefore exclude them from false sharing

    Signed-off-by: Emese Revfy
    Acked-by: David Teigland
    Acked-by: Matt Domsch
    Acked-by: Maciej Sosnowski
    Acked-by: Hans J. Koch
    Acked-by: Pekka Enberg
    Acked-by: Jens Axboe
    Acked-by: Stephen Hemminger
    Signed-off-by: Greg Kroah-Hartman

    Emese Revfy
     

16 Dec, 2009

1 commit

  • Makes use of skip_spaces() defined in lib/string.c for removing leading
    spaces from strings all over the tree.

    It decreases lib.a code size by 47 bytes and reuses the function tree-wide:
    text data bss dec hex filename
    64688 584 592 65864 10148 (TOTALS-BEFORE)
    64641 584 592 65817 10119 (TOTALS-AFTER)

    Also, while at it, if we see (*str && isspace(*str)), we can be sure to
    remove the first condition (*str) as the second one (isspace(*str)) also
    evaluates to 0 whenever *str == 0, making it redundant. In other words,
    "a char equals zero is never a space".

    Julia Lawall tried the semantic patch (http://coccinelle.lip6.fr) below,
    and found occurrences of this pattern on 3 more files:
    drivers/leds/led-class.c
    drivers/leds/ledtrig-timer.c
    drivers/video/output.c

    @@
    expression str;
    @@

    ( // ignore skip_spaces cases
    while (*str && isspace(*str)) { \(str++;\|++str;\) }
    |
    - *str &&
    isspace(*str)
    )

    Signed-off-by: André Goddard Rosa
    Cc: Julia Lawall
    Cc: Martin Schwidefsky
    Cc: Jeff Dike
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: "H. Peter Anvin"
    Cc: Richard Purdie
    Cc: Neil Brown
    Cc: Kyle McMartin
    Cc: Henrique de Moraes Holschuh
    Cc: David Howells
    Cc:
    Cc: Samuel Ortiz
    Cc: Patrick McHardy
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    André Goddard Rosa
     

02 Aug, 2009

1 commit


16 Mar, 2008

1 commit


25 Jan, 2008

7 commits


18 Oct, 2007

1 commit


12 Jul, 2007

1 commit

  • sysfs is now completely out of driver/module lifetime game. After
    deletion, a sysfs node doesn't access anything outside sysfs proper,
    so there's no reason to hold onto the attribute owners. Note that
    often the wrong modules were accounted for as owners leading to
    accessing removed modules.

    This patch kills now unnecessary attribute->owner. Note that with
    this change, userland holding a sysfs node does not prevent the
    backing module from being unloaded.

    For more info regarding lifetime rule cleanup, please read the
    following message.

    http://article.gmane.org/gmane.linux.kernel/510293

    (tweaked by Greg to not delete the field just yet, to make it easier to
    merge things properly.)

    Signed-off-by: Tejun Heo
    Cc: Cornelia Huck
    Cc: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Tejun Heo
     

26 May, 2007

1 commit


03 May, 2007

1 commit


28 Jun, 2006

4 commits

  • Add a helper to asm/pdc.h to translate OS_ID values to strings
    and use it in the pdc_stable driver.

    Signed-off-by: Kyle McMartin

    Kyle McMartin
     
  • We were assigned an OS_ID of 0x0006. Consistently use OS_ID_LINUX
    instead of using the magic number. Also update the OS_ID_ defines in
    asm/pdc.h to reflect this.

    Signed-off-by: Kyle McMartin

    Kyle McMartin
     
  • No code change - reduce data footprint.

    Signed-off-by: Thibaut VARENE
    Signed-off-by: Kyle McMartin

    Thibaut Varene
     
  • pdc_stable v0.30:

    This patch introduces 3 more files to the /sys/firmware/stable tree:
    - diagnostic, which contains a cryptic hex string
    - osdep1, a 16 bytes os-dependent storage area always available
    - osdep2, another os-dependent storage area which existence/size depends
    on hversion.

    This patch also adds code to setup the "Linux" signature in stable
    storage. That is to say that starting with this patch, the kernel will
    now sign its OSID (0x0006, thx LaMont) in Stable Storage upon boot,
    whether pdc_stable is enabled or not.

    Signed-off-by: Thibaut VARENE
    Signed-off-by: Kyle McMartin

    Thibaut Varene
     

22 Apr, 2006

1 commit


31 Mar, 2006

1 commit


23 Jan, 2006

1 commit

  • pdc_stable v0.22, changes since v0.10:

    o renamed root subsystem from 'pdc' to 'stable'
    o split 'info' into several files, one per PDC field
    o implemented 'autoboot' and 'autosearch' write calls to toggle
    these flags
    o grant read permission to all users on "safe" files
    o more code cleanup (removed duplicate code)
    o avoid bad stable storage clobbering by write locking critical sections
    o print consistent data as well
    o SMP cleanups

    Signed-off-by: Thibaut VARENE
    Signed-off-by: Kyle McMartin

    Thibaut VARENE
     

12 Jan, 2006

1 commit

  • - Move capable() from sched.h to capability.h;

    - Use where capable() is used
    (in include/, block/, ipc/, kernel/, a few drivers/,
    mm/, security/, & sound/;
    many more drivers/ to go)

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy.Dunlap
     

11 Jan, 2006

2 commits


22 Oct, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds