14 Feb, 2007

2 commits


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.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

09 Feb, 2007

31 commits


30 Jan, 2007

1 commit

  • The recent change for a new sysfs tree with card* object breaks the
    /sys/class/sound tree if CONFIG_SYSFS_DEPRECATED is enabled.
    The device in each entry doesn't point the correct device object:

    /sys/class/sound
    ...
    |-- pcmC0D0c
    | |-- dev
    | |-- device -> ../../../class/sound/card0
    | |-- pcm_class
    | |-- power
    | | `-- wakeup
    | |-- subsystem -> ../../../class/sound
    | `-- uevent

    Also, this change breaks some drivers (like sound/arm/*) referring
    card->dev directly to obtain the device object for memory handling.

    This patch reverts the semantics of card->dev to the former version,
    which points to a real device object. The card* object is stored in a
    new card->card_dev field, instead. The device parent is chosen either
    card->dev or card->card_dev according to CONFIG_SYSFS_DEPRECATED to
    keep the tree compatibility.
    Also, card* isn't created if CONFIG_SYSFS_DEPRECATED is enabled. The
    reason of card* object is a root of all beloing devices, and it makes
    little sense if each sound device points to the real device object
    directly.

    Signed-off-by: Takashi Iwai
    Acked-by: Monty Montgomery
    Signed-off-by: Greg Kroah-Hartman

    Takashi Iwai
     

09 Jan, 2007

1 commit


20 Dec, 2006

4 commits