]> pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
18 years agoDocumentation: create new scheduler/ subdirectory
J. Bruce Fields [Thu, 7 Feb 2008 08:13:37 +0000 (00:13 -0800)]
Documentation: create new scheduler/ subdirectory

The top-level Documentation/ directory is unmanageably large, so we
should take any obvious opportunities to move stuff into subdirectories.
These sched-*.txt files seem an obvious easy case.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoDocumentation: move sharedsubtrees.txt to filesystems/
J. Bruce Fields [Thu, 7 Feb 2008 08:13:35 +0000 (00:13 -0800)]
Documentation: move sharedsubtrees.txt to filesystems/

This documentation is also vfs-related.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoDocumentation: move dnotify.txt to filesystems/
J. Bruce Fields [Thu, 7 Feb 2008 08:13:35 +0000 (00:13 -0800)]
Documentation: move dnotify.txt to filesystems/

I'm inclined to think dnotify belongs in filesystems/.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agomove edac.txt two levels up
Adrian Bunk [Thu, 7 Feb 2008 08:13:33 +0000 (00:13 -0800)]
move edac.txt two levels up

There's no reason for edac.txt for being at this unusual place.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Alan Cox <alan@redhat.com>
Cc: Doug Thompson <norsk5@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoAdd chapter IDs to z8530book.tmpl
Rob Landley [Thu, 7 Feb 2008 08:13:32 +0000 (00:13 -0800)]
Add chapter IDs to z8530book.tmpl

Add chapter IDs to z8530book.tmpl

Signed-off-by: Rob Landley <rob@landley.net>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoAdd table IDs to videobook.tmpl
Rob Landley [Thu, 7 Feb 2008 08:13:32 +0000 (00:13 -0800)]
Add table IDs to videobook.tmpl

Add table IDs to videobook.tmpl

Signed-off-by: Rob Landley <rob@landley.net>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoAdd section IDs to rapidio.tmpl
Rob Landley [Thu, 7 Feb 2008 08:13:31 +0000 (00:13 -0800)]
Add section IDs to rapidio.tmpl

Add section IDs to rapidio.tmpl

Signed-off-by: Rob Landley <rob@landley.net>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoAdd missing IDs to procfs-guide.tmpl
Rob Landley [Thu, 7 Feb 2008 08:13:31 +0000 (00:13 -0800)]
Add missing IDs to procfs-guide.tmpl

Add missing IDs to procfs-guide.tmpl

Signed-off-by: Rob Landley <rob@landley.net>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoAdd section IDs to mtdnand.tmpl
Rob Landley [Thu, 7 Feb 2008 08:13:30 +0000 (00:13 -0800)]
Add section IDs to mtdnand.tmpl

Add section IDs to mtdnand.tmpl

Signed-off-by: Rob Landley <rob@landley.net>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoAdd missing section ID to lsm.tmpl
Rob Landley [Thu, 7 Feb 2008 08:13:29 +0000 (00:13 -0800)]
Add missing section ID to lsm.tmpl

Add missing section ID to lsm.tmpl

Signed-off-by: Rob Landley <rob@landley.net>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoAdd missing section IDs to genericirq.tmpl
Rob Landley [Thu, 7 Feb 2008 08:13:28 +0000 (00:13 -0800)]
Add missing section IDs to genericirq.tmpl

Add missing section IDs to genericirq.tmpl

Signed-off-by: Rob Landley <rob@landley.net>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agotty: Kill TTY_FLIPBUF_SIZE
Alan Cox [Thu, 7 Feb 2008 08:13:28 +0000 (00:13 -0800)]
tty: Kill TTY_FLIPBUF_SIZE

This legacy define from the old buffer code is now only used in a single
power pc driver than doesn't compile anyway.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agotty: fix tty network driver interactions with TCGET/TCSET calls (x86 fix)
Dave Miller [Thu, 7 Feb 2008 08:13:27 +0000 (00:13 -0800)]
tty: fix tty network driver interactions with TCGET/TCSET calls (x86 fix)

And to go with it Dave's type checking x86 termios headers.  I've updated
these as the original sent by Dave had some wrong types in it.

Signed-off-by: Alan Cox <alan@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agokernel-doc: fix for vunmap function prototype
Randy Dunlap [Thu, 7 Feb 2008 08:13:26 +0000 (00:13 -0800)]
kernel-doc: fix for vunmap function prototype

Fix kernel-doc function prototype parsing which was exposed by vunmap() by
allowing more than one '*' before the function name.

Error(linux-2.6.24-mm1//mm/vmalloc.c:438): cannot understand prototype: 'struct page **vunmap(const void *addr) '

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoVFS: factor out three helpers for FIBMAP/FIONBIO/FIOASYNC file ioctls
Erez Zadok [Thu, 7 Feb 2008 08:13:25 +0000 (00:13 -0800)]
VFS: factor out three helpers for FIBMAP/FIONBIO/FIOASYNC file ioctls

Factor out file-specific ioctl code into smaller helper functions, away from
file_ioctl().  This helps code readability and also reduces indentation inside
case statements.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoVFS: swap do_ioctl and vfs_ioctl names
Erez Zadok [Thu, 7 Feb 2008 08:13:25 +0000 (00:13 -0800)]
VFS: swap do_ioctl and vfs_ioctl names

Rename old vfs_ioctl to do_ioctl, because the comment above it clearly
indicates that it is an internal function not to be exported to modules;
therefore it should have a more traditional do_XXX name.  The new do_ioctl
is exported in fs.h but not to modules.

Rename the old do_ioctl to vfs_ioctl because the names vfs_XXX should
preferably be reserved to callable VFS functions which modules may call, as
many other vfs_XXX functions already do.  Export the new vfs_ioctl to GPL
modules so others can use it (including Unionfs and eCryptfs).  Add DocBook
for new vfs_ioctl.

[akpm@linux-foundation.org: fix build]
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoVFS: apply coding standards to fs/ioctl.c
Erez Zadok [Thu, 7 Feb 2008 08:13:23 +0000 (00:13 -0800)]
VFS: apply coding standards to fs/ioctl.c

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoDS1WM: decouple host IRQ and INTR active state settings
Philipp Zabel [Thu, 7 Feb 2008 08:13:22 +0000 (00:13 -0800)]
DS1WM: decouple host IRQ and INTR active state settings

The DS1WM driver incorrectly infers the IAS bit (1-wire interrupt active
high) from IRQ settings.  There are devices that have IAS=0 but still need
the IRQ to trigger on a rising edge.  With this patch, machines with DS1WM
that need IAS=1 have to set .active_high=1 in the ds1wm_platform_data.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Acked-by: Matt Reimer <mreimer@vpop.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agogfs2: make gfs2_glock.gl_owner_pid be a struct pid *
Pavel Emelyanov [Thu, 7 Feb 2008 08:13:21 +0000 (00:13 -0800)]
gfs2: make gfs2_glock.gl_owner_pid be a struct pid *

The gl_owner_pid field is used to get the lock owning task by its pid, so make
it in a proper manner, i.e.  by using the struct pid pointer and pid_task()
function.

The pid_task() becomes exported for the gfs2 module.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agopower_supply: remove capacity_level from list of sysfs attributes
Thadeu Lima de Souza Cascardo [Thu, 7 Feb 2008 08:13:20 +0000 (00:13 -0800)]
power_supply: remove capacity_level from list of sysfs attributes

This commit:

commit 8efe444038a205e79b38b7ad03878824901849a8
Author: Andres Salomon <dilinger@queued.net>
Date:   Wed Dec 12 14:12:56 2007 -0500

    power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL

Removed CAPACITY_LEVEL from every other code, leaving the array with sysfs
attributes with one more entry than the number of enums in power_supply.h.
This leads to some attributes containing the value of the attribute right
after it.  For example, temp_ambient would have the value of
time_to_empty_now.  In my case, I had time_to_full_avg have the value which
should be in model_name, when the former was usually empty.

Cc: Andres Salomon <dilinger@debian.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agogfs2: make gfs2_holder.gh_owner_pid be a struct pid *
Pavel Emelyanov [Thu, 7 Feb 2008 08:13:19 +0000 (00:13 -0800)]
gfs2: make gfs2_holder.gh_owner_pid be a struct pid *

The gl_owner_pid field is used to get the holder task by its pid and check
whether the current is a holder, so make it in a proper manner, i.e.  via the
struct pid * manipulations.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years ago[SPARC32]: Use regsets in arch_ptrace().
David S. Miller [Thu, 7 Feb 2008 13:06:51 +0000 (05:06 -0800)]
[SPARC32]: Use regsets in arch_ptrace().

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC64]: Use regsets in arch_ptrace().
David S. Miller [Thu, 7 Feb 2008 13:06:12 +0000 (05:06 -0800)]
[SPARC64]: Use regsets in arch_ptrace().

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC32]: Use regsets for ELF core dumping.
David S. Miller [Thu, 7 Feb 2008 12:36:02 +0000 (04:36 -0800)]
[SPARC32]: Use regsets for ELF core dumping.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC64]: Use regsets for ELF core dumping.
David S. Miller [Thu, 7 Feb 2008 12:19:34 +0000 (04:19 -0800)]
[SPARC64]: Use regsets for ELF core dumping.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC64]: Remove unintentional ptrace debugging messages.
David S. Miller [Thu, 7 Feb 2008 11:30:21 +0000 (03:30 -0800)]
[SPARC64]: Remove unintentional ptrace debugging messages.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC]: Move over to arch_ptrace().
David S. Miller [Thu, 7 Feb 2008 11:00:17 +0000 (03:00 -0800)]
[SPARC]: Move over to arch_ptrace().

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC]: Remove PTRACE_SUN* handling.
David S. Miller [Thu, 7 Feb 2008 06:08:18 +0000 (22:08 -0800)]
[SPARC]: Remove PTRACE_SUN* handling.

Supporting SunOS ptrace() is pretty pointless and these
kinds of quirks keep us from being able to share more
code with other platforms.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC]: Kill DEBUG_PTRACE code.
David S. Miller [Thu, 7 Feb 2008 06:01:01 +0000 (22:01 -0800)]
[SPARC]: Kill DEBUG_PTRACE code.

It has long exceeded it's usefulness.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC32]: Add user regset support.
David S. Miller [Thu, 7 Feb 2008 05:00:44 +0000 (21:00 -0800)]
[SPARC32]: Add user regset support.

It is missing lazy FPU handling for the current task,
but that can be added later.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC64]: Add user regsets.
David S. Miller [Thu, 7 Feb 2008 07:02:08 +0000 (23:02 -0800)]
[SPARC64]: Add user regsets.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[SPARC64]: Fix booting on non-zero cpu.
David S. Miller [Thu, 7 Feb 2008 10:14:48 +0000 (02:14 -0800)]
[SPARC64]: Fix booting on non-zero cpu.

The early per-cpu handling needs a slight tweak to work when booting
on a non-zero cpu.

We got away with this for a long time, but can't any longer as now
even printk() calls functions (cpu_clock() for example) that thus make
early references to per-cpu variables.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[MTD] Fix mtdoops.c compilation
David Woodhouse [Thu, 7 Feb 2008 10:50:57 +0000 (10:50 +0000)]
[MTD] Fix mtdoops.c compilation

drivers/mtd/mtdoops.c: In function ‘mtdoops_console_sync’:
drivers/mtd/mtdoops.c:329: error: implicit declaration of function ‘in_interrupt’

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
18 years ago[MTD] [NOR] fix startup lock when using multiple nor flash chips
Rizzo Davide [Tue, 5 Feb 2008 07:44:48 +0000 (23:44 -0800)]
[MTD] [NOR] fix startup lock when using multiple nor flash chips

Taken from http://bugzilla.kernel.org/show_bug.cgi?id=9829

I found and solved the problem, at line 115 of drivers/mtd/chips/gen_probe.c
(kernel 2.6.24): mapsize value must be calculated in bytes, not in long.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
18 years ago[MTD] [DOC200x] eccbuf is statically defined and always evaluate to true
Samuel Tardieu [Tue, 5 Feb 2008 07:44:47 +0000 (23:44 -0800)]
[MTD] [DOC200x] eccbuf is statically defined and always evaluate to true

Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Acked-by: Joern Engel <joern@logfs.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
18 years ago[MTD] Fix maps/physmap.c compilation with CONFIG_PM
akpm@linux-foundation.org [Sun, 3 Feb 2008 20:56:03 +0000 (12:56 -0800)]
[MTD] Fix maps/physmap.c compilation with CONFIG_PM

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
18 years ago[MTD] onenand: Add panic_write function to the onenand driver
Richard Purdie [Wed, 6 Feb 2008 10:18:22 +0000 (10:18 +0000)]
[MTD] onenand: Add panic_write function to the onenand driver

Implement the panic_write function for the onenand driver. This waits
for any active command to complete/timeout, performs the write, waits
for it to complete and then returns.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
18 years ago[MTD] mtdoops: Use the panic_write function when present
Richard Purdie [Wed, 6 Feb 2008 10:17:50 +0000 (10:17 +0000)]
[MTD] mtdoops: Use the panic_write function when present

When the MTD provides a panic_write function, use it.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
18 years ago[MTD] Add mtd panic_write function pointer
Richard Purdie [Wed, 6 Feb 2008 10:17:15 +0000 (10:17 +0000)]
[MTD] Add mtd panic_write function pointer

MTDs are well suited for logging critical data and the mtdoops driver
allows kernel panics/oops to be written to flash in a blackbox flight
recorder fashion allowing better debugging and analysis of crashes.

Any kernel oops in user context can be easily handled since the kernel
continues as normal and any queued mtd writes are scheduled. Any kernel
oops in interrupt context results in a panic and the delayed writes will
not be scheduled however. The existing mtd->write function cannot be
called in interrupt context so these messages can never be written to
flash.

This patch adds a panic_write function pointer that drivers can
optionally implement which can be called in interrupt context. It is
only intended to be called when its known the kernel is about to panic
and we need to write to succeed. Since the kernel is not going to be
running for much longer, this function can break locks and delay to
ensure the write succeeds (but not sleep).

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
18 years ago[MTD] [NAND] Freescale enhanced Local Bus Controller FCM NAND support.
Scott Wood [Wed, 6 Feb 2008 21:36:21 +0000 (15:36 -0600)]
[MTD] [NAND] Freescale enhanced Local Bus Controller FCM NAND support.

Signed-off-by: Nick Spence <nick.spence@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
18 years agoleds: Add HP Jornada 6xx driver
Kristoffer Ericson [Thu, 7 Feb 2008 10:10:28 +0000 (10:10 +0000)]
leds: Add HP Jornada 6xx driver

Add support for the LEDs on the HP Jornada 620/660/680/690 devices.

Signed-off-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years agoleds: Remove the now uneeded ixp4xx driver
Rod Whitby [Thu, 7 Feb 2008 10:02:39 +0000 (10:02 +0000)]
leds: Remove the now uneeded ixp4xx driver

All boards using the IXP4XX-GPIO-LED driver have been updated to use
the generic leds-gpio driver instead.

Signed-off-by: Rod Whitby <rod@whitby.id.au>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years agoleds: Add power LED to the wrap driver
Michael Loeffler [Sun, 13 Jan 2008 23:20:52 +0000 (23:20 +0000)]
leds: Add power LED to the wrap driver

The 3rd LED on this board is something like a power-led, it is on all the
time. With this change to the leds-wrap driver it is possible to use this
LED too.

Signed-off-by: Michael Loeffler <zvpunry@zvpunry.de>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years agoleds: Fix led-gpio active_low default brightness
Raphael Assenat [Sun, 13 Jan 2008 22:55:18 +0000 (22:55 +0000)]
leds: Fix led-gpio active_low default brightness

When gpio_direction_output() is called, led_dat->active_low is used
as default value. This means that the led will always be off by
default. cdev.brightness should really have been set to LED_OFF
unconditionally to reflect this behavior.

Signed-off-by: Raphael Assenat <raph@8d.com>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years agoleds: hw acceleration for Clevo mail LED driver
Márton Németh [Wed, 31 Oct 2007 14:09:05 +0000 (15:09 +0100)]
leds: hw acceleration for Clevo mail LED driver

Add support for hardware accelerated LED blinking for the mail LED
commonly found on Clevo notebooks.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years agoleds: Add support for hardware accelerated LED flashing
Márton Németh [Wed, 31 Oct 2007 14:07:12 +0000 (15:07 +0100)]
leds: Add support for hardware accelerated LED flashing

Extends the leds subsystem with a blink_set() callback function which can
be optionally implemented by a LED driver. If implemented, the driver can use
the hardware acceleration for blinking a LED.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years agoleds: Standardise LED naming scheme
Richard Purdie [Wed, 31 Oct 2007 14:00:07 +0000 (15:00 +0100)]
leds: Standardise LED naming scheme

As discussed on LKML some notion of 'function' is needed in
LED naming. This patch adds this to the documentation and
standardises existing LED drivers.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years ago[POWERPC] Add SPE registers to core dumps
Roland McGrath [Thu, 3 Jan 2008 01:05:48 +0000 (17:05 -0800)]
[POWERPC] Add SPE registers to core dumps

This makes the SPE register data appear in ELF core dumps, using the
new n_type value NT_PPC_SPE (0x101).  This new note type is not used
by any consumers of core files yet, but support can be added.  I don't
even have any hardware with SPE capabilities, so I've never seen such
a note.  But this demonstrates how simple it is to export register
information in core dumps when the user_regset style is used for the
low-level code.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Use regset code for compat PTRACE_*REGS* calls
Roland McGrath [Thu, 20 Dec 2007 11:59:04 +0000 (03:59 -0800)]
[POWERPC] Use regset code for compat PTRACE_*REGS* calls

This cleans up the 32-bit ptrace syscall support to use user_regset calls
to get at the register data for PTRACE_*REGS* calls.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Use generic compat_sys_ptrace
Roland McGrath [Thu, 20 Dec 2007 11:58:55 +0000 (03:58 -0800)]
[POWERPC] Use generic compat_sys_ptrace

This replaces powerpc's compat_sys_ptrace with a compat_arch_ptrace and
enables the new generic definition of compat_sys_ptrace instead.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Use generic compat_ptrace_request
Roland McGrath [Thu, 20 Dec 2007 11:58:49 +0000 (03:58 -0800)]
[POWERPC] Use generic compat_ptrace_request

This removes some duplicated code by calling the new generic
compat_ptrace_request from powerpc's compat_sys_ptrace.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Use generic ptrace peekdata/pokedata
Roland McGrath [Thu, 20 Dec 2007 11:58:40 +0000 (03:58 -0800)]
[POWERPC] Use generic ptrace peekdata/pokedata

Now that ptrace_request handles these, we can drop some more boilerplate.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Use regset code for PTRACE_*REGS* requests
Roland McGrath [Thu, 20 Dec 2007 11:58:36 +0000 (03:58 -0800)]
[POWERPC] Use regset code for PTRACE_*REGS* requests

This replaces all the code for powerpc PTRACE_*REGS* requests with
simple calls to copy_regset_from_user and copy_regset_to_user.  All
the ptrace formats are either the whole corresponding user_regset
format (core dump format) or a leading subset of it, so we can get
rid of all the remaining embedded knowledge of both those layouts
and of the internal data structures they correspond to.  Only the
user_regset accessors need to implement that.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Switch to generic compat_binfmt_elf code
Roland McGrath [Thu, 3 Jan 2008 01:03:11 +0000 (17:03 -0800)]
[POWERPC] Switch to generic compat_binfmt_elf code

This switches the CONFIG_PPC64 support for 32-bit ELF to use the
generic fs/compat_binfmt_elf.c implementation instead of our own
binfmt_elf32.c.  Since so much is the same between 32/64, there is
only one macro we have to define to make the generic support work out
of the box.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Switch to using user_regset-based core dumps
Roland McGrath [Thu, 20 Dec 2007 11:58:12 +0000 (03:58 -0800)]
[POWERPC] Switch to using user_regset-based core dumps

This switches powerpc to using the user_regset-based code for ELF core
dumps.  The core dumps come out exactly the same either way, except that
the NT_PPC_VMX note is now omitted for any thread that never touched its
Altivec registers (thread_struct.vr_used).

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Add user_regset compat support
Roland McGrath [Thu, 20 Dec 2007 11:58:08 +0000 (03:58 -0800)]
[POWERPC] Add user_regset compat support

This extends task_user_regset_view CONFIG_PPC64 with support for the
32-bit view of register state, compatible with what a CONFIG_PPC32
kernel provides.  This will enable generic machine-independent code to
access user-mode threads' registers for debugging and dumping.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Add user_regset_view definitions
Roland McGrath [Thu, 20 Dec 2007 11:58:00 +0000 (03:58 -0800)]
[POWERPC] Add user_regset_view definitions

This provides the task_user_regset_view entry point and support for
all the native-mode (64 on CONFIG_PPC64, 32 on CONFIG_PPC32) thread
register state.  This will enable generic machine-independent code to
access user-mode threads' registers for debugging and dumping.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Use user_regset accessors for GPRs
Roland McGrath [Thu, 20 Dec 2007 11:57:55 +0000 (03:57 -0800)]
[POWERPC] Use user_regset accessors for GPRs

This implements user_regset-style accessors for the powerpc general
registers.  In the future these functions will be the only place that
needs to understand the user_regset layout (core dump format) and how
it maps to the internal representation of user thread state.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] ptrace accessors for special regs MSR and TRAP
Roland McGrath [Thu, 20 Dec 2007 11:57:51 +0000 (03:57 -0800)]
[POWERPC] ptrace accessors for special regs MSR and TRAP

This isolates the ptrace code for the special-case registers msr and trap
from the ptrace-layout dispatch code.  This should inline away completely.
It cleanly separates the low-level machine magic that has to be done for
deep reasons, from the superficial details of the ptrace interface.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Use user_regset accessors for SPE regs
Roland McGrath [Thu, 20 Dec 2007 11:57:48 +0000 (03:57 -0800)]
[POWERPC] Use user_regset accessors for SPE regs

This implements user_regset-style accessors for the powerpc SPE data,
and rewrites the existing ptrace code in terms of those calls.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Use user_regset accessors for altivec regs
Roland McGrath [Thu, 20 Dec 2007 11:57:39 +0000 (03:57 -0800)]
[POWERPC] Use user_regset accessors for altivec regs

This implements user_regset-style accessors for the powerpc Altivec data,
and rewrites the existing ptrace code in terms of those calls.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years ago[POWERPC] Use user_regset accessors for FP regs
Roland McGrath [Thu, 20 Dec 2007 11:57:34 +0000 (03:57 -0800)]
[POWERPC] Use user_regset accessors for FP regs

This implements user_regset-style accessors for the powerpc FPU data,
and rewrites the existing ptrace code in terms of those calls.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
18 years agobacklight: Add OMAP1 PWL backlight driver
Andrzej Zaborowski [Sun, 13 Jan 2008 23:15:43 +0000 (23:15 +0000)]
backlight: Add OMAP1 PWL backlight driver

This adds the OMAP1 PWL-based LCD backlight driver.  It's been in the OMAP
tree for some time.  Note that OMAP2 can do similar things with the generic
timers which have PWM outputs.  Such timers are more generic than the PWL
found on OMAP1 chips, but have a different EMI profile because they aren't
driven by a pseudorandom number generator.

[akpm@linux-foundation.org: cleanups]
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years agobacklight: Avoid unecessary driver callbacks
Helge Deller [Sun, 13 Jan 2008 23:01:13 +0000 (23:01 +0000)]
backlight: Avoid unecessary driver callbacks

Avoid driver callbacks when the brightness hasn't changed since
they're not necessary.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years agoMerge branch 'for-2.6.25' of master.kernel.org:/pub/scm/linux/kernel/git/jwboyer...
Paul Mackerras [Thu, 7 Feb 2008 09:27:36 +0000 (20:27 +1100)]
Merge branch 'for-2.6.25' of master.kernel.org:/pub/scm/linux/kernel/git/jwboyer/powerpc-4xx

18 years agoACPI: fix build warning
Len Brown [Thu, 7 Feb 2008 09:24:01 +0000 (04:24 -0500)]
ACPI: fix build warning

drivers/acpi/system.c:360: warning: ignoring return value of ‘sysfs_create_group’, declared with attribute warn_unused_result

Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoleds: Add clevo notebook LED driver
Márton Németh [Wed, 31 Oct 2007 10:46:41 +0000 (11:46 +0100)]
leds: Add clevo notebook LED driver

The driver supports the mail LED commonly found on different Clevo notebooks.
The driver access the LED through the i8042 hardware which is handled by
the input subsystem.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
18 years agoRevert "cpuidle: build fix for non-x86"
Len Brown [Thu, 7 Feb 2008 09:16:34 +0000 (04:16 -0500)]
Revert "cpuidle: build fix for non-x86"

This reverts commit f757397097d0713c949af76dccabb65a2785782e.
which ironically broke the ia64 build

18 years agoMerge branches 'release' and 'dsdt-override' into release
Len Brown [Thu, 7 Feb 2008 09:01:53 +0000 (04:01 -0500)]
Merge branches 'release' and 'dsdt-override' into release

18 years agoACPI: update intrd DSDT override console messages
Len Brown [Thu, 7 Feb 2008 00:49:54 +0000 (19:49 -0500)]
ACPI: update intrd DSDT override console messages

also, address some checkpatch.pl violations

Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: update DSDT override documentation
Len Brown [Thu, 7 Feb 2008 00:28:02 +0000 (19:28 -0500)]
ACPI: update DSDT override documentation

Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: Add "acpi_no_initrd_override" kernel parameter
Éric Piel [Mon, 4 Feb 2008 23:04:58 +0000 (00:04 +0100)]
ACPI: Add "acpi_no_initrd_override" kernel parameter

The acpi_no_initrd_override parameter permits to disable the load of an ACPI
table from the initramfs.

Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoMerge branches 'release' and 'fluff' into release
Len Brown [Thu, 7 Feb 2008 08:38:22 +0000 (03:38 -0500)]
Merge branches 'release' and 'fluff' into release

Conflicts:

drivers/acpi/scan.c
include/linux/acpi.h

Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: its a directory not a folder....
Alan Cox [Thu, 3 Jan 2008 16:31:42 +0000 (16:31 +0000)]
ACPI: its a directory not a folder....

The kernel help consistently uses 'directory'

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: misc cleanups
Adrian Bunk [Wed, 24 Oct 2007 16:24:42 +0000 (18:24 +0200)]
ACPI: misc cleanups

    This patch contains the following possible cleanups:
    - make the following needlessly global code static:
      - drivers/acpi/bay.c:dev_attr_eject
      - drivers/acpi/bay.c:dev_attr_present
      - drivers/acpi/dock.c:dev_attr_docked
      - drivers/acpi/dock.c:dev_attr_flags
      - drivers/acpi/dock.c:dev_attr_uid
      - drivers/acpi/dock.c:dev_attr_undock
      - drivers/acpi/pci_bind.c:acpi_pci_unbind()
      - drivers/acpi/pci_link.c:acpi_link_lock
      - drivers/acpi/sbs.c:acpi_sbs_callback()
      - drivers/acpi/sbshc.c:acpi_smbus_transaction()
      - drivers/acpi/sleep/main.c:acpi_sleep_prepare()
    - #if 0 the following unused global functions:
      - drivers/acpi/numa.c:acpi_unmap_pxm_to_node()
    - remove the following unused EXPORT_SYMBOL's:
      - acpi_register_gsi
      - acpi_unregister_gsi
      - acpi_strict
      - acpi_bus_receive_event
      - register_acpi_bus_type
      - unregister_acpi_bus_type
      - acpi_os_printf
      - acpi_os_sleep
      - acpi_os_stall
      - acpi_os_read_pci_configuration
      - acpi_os_create_semaphore
      - acpi_os_delete_semaphore
      - acpi_os_wait_semaphore
      - acpi_os_signal_semaphore
      - acpi_os_signal
      - acpi_pci_irq_enable
      - acpi_get_pxm

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: add missing prink prefix strings
Len Brown [Tue, 1 Jan 2008 19:00:00 +0000 (14:00 -0500)]
ACPI: add missing prink prefix strings

Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: cleanup acpi.h
Jean Delvare [Fri, 7 Dec 2007 03:00:36 +0000 (22:00 -0500)]
ACPI: cleanup acpi.h

Two cleanups to <linux/acpi.h>:
* Stop defining acpi_mp_config, it isn't used anywhere.
* Discard nested "#ifdef CONFIG_ACPI", they are useless and
  error-prone.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPICA: fix CONFIG_ACPI_DEBUG_FUNC_TRACE build
Len Brown [Fri, 23 Nov 2007 23:33:11 +0000 (18:33 -0500)]
ACPICA: fix CONFIG_ACPI_DEBUG_FUNC_TRACE build

798d91039849486c7a4f1a458a5680cb55a65408
(ACPI: create CONFIG_ACPI_DEBUG_FUNC_TRACE)

failed to associate the new tracing config option with the tracing code.

Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoMerge branches 'release' and 'hwmon-conflicts' into release
Len Brown [Thu, 7 Feb 2008 08:31:17 +0000 (03:31 -0500)]
Merge branches 'release' and 'hwmon-conflicts' into release

18 years agoMerge branches 'release' and 'throttling-domains' into release
Len Brown [Thu, 7 Feb 2008 08:30:48 +0000 (03:30 -0500)]
Merge branches 'release' and 'throttling-domains' into release

18 years agoMerge branches 'release' and 'video' into release
Len Brown [Thu, 7 Feb 2008 08:25:48 +0000 (03:25 -0500)]
Merge branches 'release' and 'video' into release

Conflicts:

include/acpi/acpi_bus.h

Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: video: Ignore ACPI video devices that aren't present in hardware
Matthew Garrett [Thu, 7 Feb 2008 01:44:06 +0000 (01:44 +0000)]
ACPI: video: Ignore ACPI video devices that aren't present in hardware

Vendors often ship machines with a choice of integrated or discrete
graphics, and use the same DSDT for both. As a result, the ACPI video
module will locate devices that may not exist on this specific platform.

Attempt to determine whether the device exists or not, and abort the
device creation if it do not exist.

Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: video: reset brightness on resume
Matthew Garrett [Tue, 5 Feb 2008 07:31:24 +0000 (23:31 -0800)]
ACPI: video: reset brightness on resume

Some machines seem to need the backlight brightness to be reset on resume.
Add support for doing so to the video module.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: video: call ACPI notifier chain for ACPI video notifications
Zhang Rui [Fri, 25 Jan 2008 06:48:12 +0000 (14:48 +0800)]
ACPI: video: call ACPI notifier chain for ACPI video notifications

Call notifier chain for display/brightness switch events.
The kernel mode graphics driver is interested in this.

Sign-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: create notifier chain to get hotkey events to graphics driver
Zhang Rui [Fri, 25 Jan 2008 06:48:06 +0000 (14:48 +0800)]
ACPI: create notifier chain to get hotkey events to graphics driver

Kernel mode graphics drivers need this ACPI notifier chaine
so that they can get notified upon hotkey events.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: video: delete unused display switch on hotkey event code
Zhang Rui [Fri, 25 Jan 2008 06:47:57 +0000 (14:47 +0800)]
ACPI: video: delete unused display switch on hotkey event code

Display switching via ACPI control methods are
not known to work on any platforms.

Further, the X community wants to control the display
switching all by themselves without BIOS/AML involvement.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoACPI: video: create "brightness_switch_enabled" modparam
Zhang Rui [Fri, 25 Jan 2008 06:47:49 +0000 (14:47 +0800)]
ACPI: video: create "brightness_switch_enabled" modparam

Introduce new module parameter for brightness control.
"brightness_switch_enabled" is set by default which means
nothing changes upon brightness switch events.

When "brightness_switch_enabled" is cleared via
"echo 0 > /sys/module/video/parameters/brightness_switch_enabled",
ACPI will not try to change the brightness level any more.

Either X will take charge of this or users can change the brightness level
by poking /sys/class/backlight/acpi_videoX/...

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoMerge branches 'release' and 'wmi-2.6.25' into release
Len Brown [Thu, 7 Feb 2008 08:19:43 +0000 (03:19 -0500)]
Merge branches 'release' and 'wmi-2.6.25' into release

18 years agoMerge branches 'release' and 'menlo' into release
Len Brown [Thu, 7 Feb 2008 08:18:04 +0000 (03:18 -0500)]
Merge branches 'release' and 'menlo' into release

Conflicts:

drivers/acpi/video.c

Signed-off-by: Len Brown <len.brown@intel.com>
18 years agoMerge branches 'release' and 'stats' into release
Len Brown [Thu, 7 Feb 2008 08:13:36 +0000 (03:13 -0500)]
Merge branches 'release' and 'stats' into release

18 years agoMerge branches 'release', 'misc' and 'misc-2.6.25' into release
Len Brown [Thu, 7 Feb 2008 08:13:13 +0000 (03:13 -0500)]
Merge branches 'release', 'misc' and 'misc-2.6.25' into release

18 years agoMerge branches 'release' and 'ppc-workaround' into release
Len Brown [Thu, 7 Feb 2008 08:12:17 +0000 (03:12 -0500)]
Merge branches 'release' and 'ppc-workaround' into release

18 years agoMerge branches 'release' and 'hp-cid' into release
Len Brown [Thu, 7 Feb 2008 08:11:56 +0000 (03:11 -0500)]
Merge branches 'release' and 'hp-cid' into release

18 years agoMerge branches 'release' and 'gpe-ack' into release
Len Brown [Thu, 7 Feb 2008 08:11:47 +0000 (03:11 -0500)]
Merge branches 'release' and 'gpe-ack' into release

18 years agoMerge branches 'release' and 'dmi' into release
Len Brown [Thu, 7 Feb 2008 08:11:31 +0000 (03:11 -0500)]
Merge branches 'release' and 'dmi' into release

18 years agoMerge branches 'release', 'cpuidle-2.6.25' and 'idle' into release
Len Brown [Thu, 7 Feb 2008 08:11:05 +0000 (03:11 -0500)]
Merge branches 'release', 'cpuidle-2.6.25' and 'idle' into release

18 years agoMerge branches 'release', 'bugzilla-6217', 'bugzilla-6629', 'bugzilla-6933', 'bugzill...
Len Brown [Thu, 7 Feb 2008 08:09:43 +0000 (03:09 -0500)]
Merge branches 'release', 'bugzilla-6217', 'bugzilla-6629', 'bugzilla-6933', 'bugzilla-7186', 'bugzilla-8269', 'bugzilla-8570', 'bugzilla-9139', 'bugzilla-9277', 'bugzilla-9341', 'bugzilla-9444', 'bugzilla-9614', 'bugzilla-9643' and 'bugzilla-9644' into release

18 years agoMerge branches 'release' and 'autoload' into release
Len Brown [Thu, 7 Feb 2008 08:07:55 +0000 (03:07 -0500)]
Merge branches 'release' and 'autoload' into release

18 years agoMerge branches 'release', 'asus', 'sony-laptop' and 'thinkpad' into release
Len Brown [Thu, 7 Feb 2008 08:07:35 +0000 (03:07 -0500)]
Merge branches 'release', 'asus', 'sony-laptop' and 'thinkpad' into release

18 years agoMerge branches 'release', 'acpi_pm_device_sleep_state' and 'battery' into release
Len Brown [Thu, 7 Feb 2008 08:07:03 +0000 (03:07 -0500)]
Merge branches 'release', 'acpi_pm_device_sleep_state' and 'battery' into release