Patrick Mochel [Thu, 13 Feb 2003 06:45:40 +0000 (00:45 -0600)]
acpi sleep: demote acpi_sleep_init() to a late_initcall.
- It depends on the rest of the subsys_initcalls in acpi to be done to get
the sleep info from the firmware.
- It doesn't need to be available any earlier...
Patrick Mochel [Thu, 13 Feb 2003 06:38:03 +0000 (00:38 -0600)]
acpi sleep: demote sleep proc file creation.
- Make acpi_sleep_proc_init() a late_initcall(), and not called from
acpi_sleep_init(). This guarantees that the acpi proc hierarchy is at
least there when we create the dang file.
David Jeffery [Thu, 13 Feb 2003 02:44:25 +0000 (18:44 -0800)]
[PATCH] ips: missing reboot notifier and Mode Sense P8
This adds back the reboot_notifier hook that was accidentally removed in
the last set of patches.
It also adds support handle a Mode Page 8 command so the scsi layer
won't complain anymore. And the movement to using ->device to get scsi
numbers resulted in 2 typos in debug code. These are also fixed.
Andrew Morton [Thu, 13 Feb 2003 01:40:42 +0000 (17:40 -0800)]
[PATCH] xattr: lock_kernel() balancing fix
Patch from Andreas Gruenbacher <agruen@suse.de>
This patch fixes an unbalanced lock_kernel()/unlock_kernel() path in the ext3
extended attributes code. Instead of fixing this in fs/ext3/xattr_user.c,
the locking code is moved to fs/ext3/xattr.c, since most other types of
extended attributes will need the exact same functionality.
Andrew Morton [Thu, 13 Feb 2003 01:40:15 +0000 (17:40 -0800)]
[PATCH] Cyclone timer fixes
Patch from: john stultz <johnstul@us.ibm.com>
This patch "fixes" the timer_cyclone code by having it
initialize fast_gettimeoffset_quotient and cpu_khz in the same manner as
timer_tsc. This is required for enabling the timer_cyclone code on the
x440.
Ideally fast_gettimeoffset_quotient would not be used outside timer_tsc
and cpu_khz would be initialized generically outside the timer
subsystem. I have patches to do this, but they touch quite a bit of
generic code, and I'd rather not make the timer_cyclone enablement
(patch to follow) depend on these larger changes.
Andrew Morton [Thu, 13 Feb 2003 01:40:07 +0000 (17:40 -0800)]
[PATCH] ia32 TSC timer cleanup
Patch from: john stultz <johnstul@us.ibm.com>
This cleanup patch makes fast_gettimeoffset_quotient (a timer_tsc specific
variable) static, and replaces its usage with cpu_khz, making it timer_opt
independent.
Attempting to cat a sysfs file that returns an error will result in an
endless dump of garbage to the screen because the result of the specific show
operation was being saved to a size_t (unsigned) and then later checked for a
negative value.
Andrew Morton [Thu, 13 Feb 2003 01:39:33 +0000 (17:39 -0800)]
[PATCH] set unplug_timer.function inside blk_queue_make_request
Patch from Neil Brown <neilb@cse.unsw.edu.au>
Initialise the queue's unplug_timer inside blk_queue_make_request. This
makes the new auto-unplugging more accessable by other clients of
blk_queue_make_request - e.g. raid5, umem.
Jean Tourrilhes [Wed, 12 Feb 2003 22:15:08 +0000 (17:15 -0500)]
[irda] rx/tx wrapper path rewrites and cleanup:
o [FEATURE] Properly inline in wrapper Tx path
o [FEATURE] Rewrite/simplify/optimise wrapper Rx path
Lower CPU overhead *and* kernel image size
o [FEATURE] Add ZeroCopy in wrapper Rx path for drivers that support it
I'll update drivers later on...
Patrick Mochel [Wed, 12 Feb 2003 13:35:58 +0000 (07:35 -0600)]
acpi sleep: divorce sleep functionality from power off functionality.
When ACPI turns the system off on shutdown, it actually enters S5, a sleep
state. This functionality is dependent on CONFIG_ACPI_SLEEP, which is
dependent on CONFIG_SOFTWARE_SUSPEND.
This patch breaks the power off functionality into a separate file, and
removes the dependency on the above-mentioned crap. Finally, power off works
for me again.
Thanks to Tobias Ringstrom for the original patch.
Patrick Mochel [Wed, 12 Feb 2003 13:06:37 +0000 (07:06 -0600)]
Consolidate ACPI and APM sysrq implementations.
Each power management scheme was implmenting a sysrq callback for 'o' which
would call their respective power off routines.
This moves the installation of the sysrq handler to kernel/pm.c, and calls
pm_power_off(), which will work for any platform that has that method
defined.
Patrick Mochel [Wed, 12 Feb 2003 12:13:30 +0000 (06:13 -0600)]
acpi: fix recently introduced proc-related bugs.
Recently, the acpi proc files were changed to use the seq_file interface.
As a result of this, the write methods became top-level write() methods
(i.e. not called by the proc layer).
Whoever made these changes, did not take into account that the parameters
passed to these changed. The fourth parameter previously was a void*, that
pointed to the private data for the owner of the file, and some of the
methods still expected this, even though the parameter is now an loff_t*,
and points to the offset into the file that is being written. Huge Bug.
This fixes the broken methods to look in the same place as the other
methods (i.e. in the file's private data).
Vojtech Pavlik [Wed, 12 Feb 2003 12:02:12 +0000 (13:02 +0100)]
input.c: joydev/mousedev update
- relax requirements on devices, joydev now allows joysticks
without buttons to work with throttles and pedals, mousedev
allows a separate mouse wheel
- remove a stray semicolon in joydev