i386: remove bogus mtrr range check

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4710bcce8e02257c8a423b7a62ea81d0207582c8
Commit: 4710bcce8e02257c8a423b7a62ea81d0207582c8
Parent: abdba717253382a669af9c719313ec602cc95a2d
Author: Linus Torvalds [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 10:56:11 2007 -0700
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 10:56:11 2007 -0700

i386: remove bogus mtrr range check

Commit 9215da33209b861b01c51382254b178a3fe92a30 fixed the MTRR range
check to not allow any MTRR's under the 1MB mark (since that's where the
fixed MTRR's are active).

However, that was totally bogus, since it's normal (and almost required)
to have a large variable MTRR that starts at 0, and covers some large
percentage of the whole RAM, and then using the fixed MTRR's to override
that large MTRR to handle the special ISA hole in the 640k-1M region.

The old check was bogus too (checking that no variable MTRR is used that
is entirely under the 1MB range), but at least it wasn't actively
detrimental, because no sane situation would ever trigger such MTRR
usage in the first place.

That said, the whole notion of not allowing variable MTRR's in the low
1MB is just stupid, so rather than revert the commit, this just removes
the whole sad and unnecessary check entirely.

Cc: Jan Beulich [EMAIL PROTECTED]
Cc: Andi Kleen [EMAIL PROTECTED]
Cc: Andrew Morton [EMAIL PROTECTED]
Tested-by: Luca Palermo [EMAIL PROTECTED]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]
---
 arch/i386/kernel/cpu/mtrr/generic.c |5 -
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/arch/i386/kernel/cpu/mtrr/generic.c 
b/arch/i386/kernel/cpu/mtrr/generic.c
index 6d59378..5a551fb 100644
--- a/arch/i386/kernel/cpu/mtrr/generic.c
+++ b/arch/i386/kernel/cpu/mtrr/generic.c
@@ -469,11 +469,6 @@ int generic_validate_add_page(unsigned long base, unsigned 
long size, unsigned i
}
}
 
-   if (base  0x100) {
-   printk(KERN_WARNING mtrr: cannot set region below 1 MiB 
(0x%lx000,0x%lx000)\n,
-  base, size);
-   return -EINVAL;
-   }
/*  Check upper bits of base and last are equal and lower bits are 0
for base and 1 for last  */
last = base + size - 1;
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


blink driver power saving

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0f4915b9c5d7a35da11bfcff80ae6466cb7b9fc4
Commit: 0f4915b9c5d7a35da11bfcff80ae6466cb7b9fc4
Parent: 4710bcce8e02257c8a423b7a62ea81d0207582c8
Author: Stephen Hemminger [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 12:50:35 2007 -0400
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 11:08:39 2007 -0700

blink driver power saving

The blink driver wakes up every jiffies which wastes power unnecessarily.
Using a notifier gives same effect. Also add ability to unload module.

Signed-off-by: Stephen Hemminger [EMAIL PROTECTED]
[ We should really just delete the whole thing. The blink driver is
  broken in many other ways too  -Linus ]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]
---
 drivers/misc/blink.c |   22 --
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/drivers/misc/blink.c b/drivers/misc/blink.c
index 634431c..97f7253 100644
--- a/drivers/misc/blink.c
+++ b/drivers/misc/blink.c
@@ -16,12 +16,30 @@ static void do_blink(unsigned long data)
add_timer(blink_timer);
 }
 
-static int blink_init(void)
+static int blink_panic_event(struct notifier_block *blk,
+unsigned long event, void *arg)
 {
-   printk(KERN_INFO Enabling keyboard blinking\n);
do_blink(0);
return 0;
 }
 
+static struct notifier_block blink_notify = {
+   .notifier_call = blink_panic_event,
+};
+
+static __init int blink_init(void)
+{
+   printk(KERN_INFO Enabling keyboard blinking\n);
+   atomic_notifier_chain_register(panic_notifier_list, blink_notify);
+   return 0;
+}
+
+static __exit void blink_remove(void)
+{
+   del_timer_sync(blink_timer);
+   atomic_notifier_chain_unregister(panic_notifier_list, blink_notify);
+}
+
 module_init(blink_init);
+module_exit(blink_remove);
 
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


SLAB: remove WARN_ON_ONCE for zero sized objects for 2.6.22 release

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1700dd70378b2f17fa9b0248f15067d88c58
Commit: 1700dd70378b2f17fa9b0248f15067d88c58
Parent: 0f4915b9c5d7a35da11bfcff80ae6466cb7b9fc4
Author: Christoph Lameter [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 12:06:35 2007 -0700
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 12:29:43 2007 -0700

SLAB: remove WARN_ON_ONCE for zero sized objects for 2.6.22 release

We agreed to remove the WARN_ON_ONCE before 2.6.22 is released.

Signed-off-by: Christoph Lameter [EMAIL PROTECTED]
Signed-off-by: Andrew Morton [EMAIL PROTECTED]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]
---
 mm/slab.c |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/mm/slab.c b/mm/slab.c
index 6d65cf4..a9c4472 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -774,7 +774,6 @@ static inline struct kmem_cache 
*__find_general_cachep(size_t size,
 */
BUG_ON(malloc_sizes[INDEX_AC].cs_cachep == NULL);
 #endif
-   WARN_ON_ONCE(size == 0);
while (size  csizep-cs_size)
csizep++;
 
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


ALSA: more section mismatches

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=10c86be57724adf44c266300964182fd2966d108
Commit: 10c86be57724adf44c266300964182fd2966d108
Parent: 95203aec21fcdff1f1fa5480a597d02416aa0a63
Author: Randy Dunlap [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 12:06:37 2007 -0700
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 12:29:44 2007 -0700

ALSA: more section mismatches

Fix section mismatch warnings:

WARNING: sound/built-in.o(.exit.text+0x3ad): Section mismatch: reference to 
.init.text: (between 'sb_exit' and 'unload_uart6850')
WARNING: sound/built-in.o(.exit.text+0x753): Section mismatch: reference to 
.init.text: (between 'snd_mts64_module_exit' and 'snd_portman_module_exit')

Signed-off-by: Randy Dunlap [EMAIL PROTECTED]
Cc: Jaroslav Kysela [EMAIL PROTECTED]
Cc: Takashi Iwai [EMAIL PROTECTED]
Signed-off-by: Andrew Morton [EMAIL PROTECTED]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]
---
 sound/drivers/mts64.c |2 +-
 sound/oss/sb_card.c   |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/drivers/mts64.c b/sound/drivers/mts64.c
index ebb1bda..2025db5 100644
--- a/sound/drivers/mts64.c
+++ b/sound/drivers/mts64.c
@@ -1048,7 +1048,7 @@ static struct platform_driver snd_mts64_driver = {
 /*
  * module init stuff
  */
-static void __init_or_module snd_mts64_unregister_all(void)
+static void snd_mts64_unregister_all(void)
 {
int i;
 
diff --git a/sound/oss/sb_card.c b/sound/oss/sb_card.c
index 27acd6f..7de18b5 100644
--- a/sound/oss/sb_card.c
+++ b/sound/oss/sb_card.c
@@ -290,7 +290,7 @@ static struct pnp_card_driver sb_pnp_driver = {
 MODULE_DEVICE_TABLE(pnp_card, sb_pnp_card_table);
 #endif /* CONFIG_PNP */
 
-static void __init_or_module sb_unregister_all(void)
+static void sb_unregister_all(void)
 {
 #ifdef CONFIG_PNP
if (pnp_registered)
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


pci.h stubs (for EDD build error)

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d80d02173360562625c10a526132fb87be4de2a4
Commit: d80d02173360562625c10a526132fb87be4de2a4
Parent: 10c86be57724adf44c266300964182fd2966d108
Author: Randy Dunlap [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 12:06:37 2007 -0700
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 12:29:44 2007 -0700

pci.h stubs (for EDD build error)

Provide stubs for more PCI bus/slot functions when CONFIG_PCI=n.

Signed-off-by: Randy Dunlap [EMAIL PROTECTED]
Cc: Matt Domsch [EMAIL PROTECTED]
Cc: Greg KH [EMAIL PROTECTED]
Signed-off-by: Andrew Morton [EMAIL PROTECTED]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]
---
 include/linux/pci.h |   11 +++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/include/linux/pci.h b/include/linux/pci.h
index fbf3766..086a0e5 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -748,6 +748,17 @@ static inline void pci_release_regions(struct pci_dev 
*dev) { }
 static inline void pci_block_user_cfg_access(struct pci_dev *dev) { }
 static inline void pci_unblock_user_cfg_access(struct pci_dev *dev) { }
 
+static inline struct pci_bus *pci_find_next_bus(const struct pci_bus *from)
+{ return NULL; }
+
+static inline struct pci_dev *pci_get_slot(struct pci_bus *bus,
+   unsigned int devfn)
+{ return NULL; }
+
+static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus,
+   unsigned int devfn)
+{ return NULL; }
+
 #endif /* CONFIG_PCI */
 
 /* Include architecture-dependent settings and functions */
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


asus_acpi: fix oops on non-asus machines

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5ebffd7c05391693b71d3326c8c78ff82f728ed0
Commit: 5ebffd7c05391693b71d3326c8c78ff82f728ed0
Parent: d80d02173360562625c10a526132fb87be4de2a4
Author: Maxime Austruy [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 12:06:38 2007 -0700
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 12:29:44 2007 -0700

asus_acpi: fix oops on non-asus machines

If asus_acpi_init doesn't find any device it knows about, it mistakenly
returns a success error code even though it cleans up after itself.  Later
when trying to rmmod asus_acpi, the module_exit routine would try to clean 
up
one more time and we would end up calling
acpi_bus_unregister_driver(asus_hotk_driver) twice.  This patch addresses
this first problem by returning -ENODEV when no appropriate device is found.

Then there was also another bug with the code handling the return value of
backlight_device_register.  If this function ever failed, the driver would
cleanup by calling the module_exit routine from module_init, but it would
still return success.  So any attempt to rmmod this module would result in
asus_acpi_exit being called twice but it's not ready to handle it (I haven't
hit this bug, just found it by code inspection).  This patch fixes that by
inserting a return -ENODEV; at the end of this error handling path.

Signed-off-by: Maxime Austruy [EMAIL PROTECTED]
Cc: Len Brown [EMAIL PROTECTED]
Cc: Richard Purdie [EMAIL PROTECTED]
Cc: Jan Engelhardt [EMAIL PROTECTED]
Signed-off-by: Andrew Morton [EMAIL PROTECTED]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]
---
 drivers/acpi/asus_acpi.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c
index 6d7d415..3cd79ca 100644
--- a/drivers/acpi/asus_acpi.c
+++ b/drivers/acpi/asus_acpi.c
@@ -1398,7 +1398,7 @@ static int __init asus_acpi_init(void)
if (!asus_hotk_found) {
acpi_bus_unregister_driver(asus_hotk_driver);
remove_proc_entry(PROC_ASUS, acpi_root_dir);
-   return result;
+   return -ENODEV;
}
 
asus_backlight_device = backlight_device_register(asus,NULL,NULL,
@@ -1407,6 +1407,7 @@ static int __init asus_acpi_init(void)
printk(KERN_ERR Could not register asus backlight device\n);
asus_backlight_device = NULL;
asus_acpi_exit();
+   return -ENODEV;
}
 asus_backlight_device-props.max_brightness = 15;
 
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


i386: mtrr crash fix

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=84288ad89e9736c7478e138f247397b9ab7a9d28
Commit: 84288ad89e9736c7478e138f247397b9ab7a9d28
Parent: 5ebffd7c05391693b71d3326c8c78ff82f728ed0
Author: Andrew Morton [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 12:06:48 2007 -0700
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 12:29:44 2007 -0700

i386: mtrr crash fix

Commit 3ebad5905609476a4ff1151a66b21d9794009961 ([PATCH] x86: Save and
restore the fixed-range MTRRs of the BSP when suspending) added mtrr
operations without verifying that the CPU has MTRRs.  Crashes transmeta
CPUs.

Cc: H. Peter Anvin [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Andrew Morton [EMAIL PROTECTED]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]
---
 arch/i386/kernel/cpu/mtrr/generic.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/i386/kernel/cpu/mtrr/generic.c 
b/arch/i386/kernel/cpu/mtrr/generic.c
index 5a551fb..f6e4694 100644
--- a/arch/i386/kernel/cpu/mtrr/generic.c
+++ b/arch/i386/kernel/cpu/mtrr/generic.c
@@ -65,7 +65,8 @@ get_fixed_ranges(mtrr_type * frs)
 
 void mtrr_save_fixed_ranges(void *info)
 {
-   get_fixed_ranges(mtrr_state.fixed_ranges);
+   if (cpu_has_mtrr)
+   get_fixed_ranges(mtrr_state.fixed_ranges);
 }
 
 static void print_fixed(unsigned base, unsigned step, const mtrr_type*types)
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


smsc-ircc2: bypass PNP detection until we get the quirks worked out

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cbcdd772ff43de58cc0d9de76ae9d05e2dd98bc0
Commit: cbcdd772ff43de58cc0d9de76ae9d05e2dd98bc0
Parent: 84288ad89e9736c7478e138f247397b9ab7a9d28
Author: Bjorn Helgaas [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 12:06:49 2007 -0700
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 12:29:44 2007 -0700

smsc-ircc2: bypass PNP detection until we get the quirks worked out

Don't use PNP detection by default yet.  We have some PNP and BIOS issues
to work out first.

Sample problem on a Toshiba Portege 4000: the SMCf010 device is handed off
disabled.  We assign I/O ports originally assigned to the SMCf010 to a
PCMCIA device instead.  We enable the SMCf010, configuring it to use
disjoint ports, but _SRS doesn't work correctly, so the device doesn't
work.

Signed-off-by: Bjorn Helgaas [EMAIL PROTECTED]
Cc: Andrey Borzenkov [EMAIL PROTECTED]
Cc: Adam Belay [EMAIL PROTECTED]
Cc: Michal Piotrowski [EMAIL PROTECTED]
Cc: Samuel Ortiz [EMAIL PROTECTED]
Cc: David S. Miller [EMAIL PROTECTED]
Cc: Jeff Garzik [EMAIL PROTECTED]
Signed-off-by: Andrew Morton [EMAIL PROTECTED]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]
---
 drivers/net/irda/smsc-ircc2.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/irda/smsc-ircc2.c b/drivers/net/irda/smsc-ircc2.c
index 2803b37..36ab983 100644
--- a/drivers/net/irda/smsc-ircc2.c
+++ b/drivers/net/irda/smsc-ircc2.c
@@ -79,7 +79,7 @@ MODULE_AUTHOR(Daniele Peri [EMAIL PROTECTED]);
 MODULE_DESCRIPTION(SMC IrCC SIR/FIR controller driver);
 MODULE_LICENSE(GPL);
 
-static int smsc_nopnp;
+static int smsc_nopnp = 1;
 module_param_named(nopnp, smsc_nopnp, bool, 0);
 MODULE_PARM_DESC(nopnp, Do not use PNP to detect controller settings);
 
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


PM: introduce set_target method in pm_ops

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2391dae3e36c19fe668c71eac2eb8344dbaaf46d
Commit: 2391dae3e36c19fe668c71eac2eb8344dbaaf46d
Parent: cbcdd772ff43de58cc0d9de76ae9d05e2dd98bc0
Author: Rafael J. Wysocki [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 12:07:33 2007 -0700
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 12:29:44 2007 -0700

PM: introduce set_target method in pm_ops

Commit 52ade9b3b97fd3bea42842a056fe0786c28d0555 changed the suspend code
ordering to execute pm_ops-prepare() after the device model per-device
.suspend() calls in order to fix some ACPI-related issues.  Unfortunately, 
it
broke the at91 platform which assumed that pm_ops-prepare() would be called
before suspending devices.

at91 used pm_ops-prepare() to get notified of the target system sleep 
state,
so that it could use this information while suspending devices.  However, 
with
the current suspend code ordering pm_ops-prepare() is called too late for
this purpose.  Thus, at91 needs an additional method in 'struct pm_ops' that
will be used for notifying the platform of the target system sleep state.
Moreover, in the future such a method will also be needed by ACPI.

This patch adds the .set_target() method to 'struct pm_ops' and makes the
suspend code call it, if implemented, before executing the device model
per-device .suspend() calls.  It also modifies the at91 code to use
pm_ops-set_target() instead of pm_ops-prepare().

Signed-off-by: Rafael J. Wysocki [EMAIL PROTECTED]
Acked-by: David Brownell [EMAIL PROTECTED]
Cc: Pavel Machek [EMAIL PROTECTED]
Cc: Johannes Berg [EMAIL PROTECTED]
Cc: Len Brown [EMAIL PROTECTED]
Cc: Greg KH [EMAIL PROTECTED]
Signed-off-by: Andrew Morton [EMAIL PROTECTED]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]
---
 arch/arm/mach-at91/pm.c |4 +-
 include/linux/pm.h  |   62 +++---
 kernel/power/main.c |6 -
 3 files changed, 54 insertions(+), 18 deletions(-)

diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
index 47ff676..ddf9184 100644
--- a/arch/arm/mach-at91/pm.c
+++ b/arch/arm/mach-at91/pm.c
@@ -53,7 +53,7 @@ static suspend_state_t target_state;
 /*
  * Called after processes are frozen, but before we shutdown devices.
  */
-static int at91_pm_prepare(suspend_state_t state)
+static int at91_pm_set_target(suspend_state_t state)
 {
target_state = state;
return 0;
@@ -201,7 +201,7 @@ error:
 
 static struct pm_ops at91_pm_ops ={
.valid  = at91_pm_valid_state,
-   .prepare= at91_pm_prepare,
+   .set_target = at91_pm_set_target,
.enter  = at91_pm_enter,
 };
 
diff --git a/include/linux/pm.h b/include/linux/pm.h
index 87545e0..b2c4fde 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -110,37 +110,67 @@ typedef int __bitwise suspend_state_t;
 #define PM_SUSPEND_MAX ((__force suspend_state_t) 4)
 
 /**
- * struct pm_ops - Callbacks for managing platform dependent suspend states.
- * @valid: Callback to determine whether the given state can be entered.
- * Valid states are advertised in /sys/power/state but can still
- * be rejected by prepare or enter if the conditions aren't right.
- * There is a %pm_valid_only_mem function available that can be assigned
- * to this if you only implement mem sleep.
+ * struct pm_ops - Callbacks for managing platform dependent system sleep
+ * states.
  *
- * @prepare: Prepare the platform for the given suspend state. Can return a
- * negative error code if necessary.
+ * @valid: Callback to determine if given system sleep state is supported by
+ * the platform.
+ * Valid (ie. supported) states are advertised in /sys/power/state.  Note
+ * that it still may be impossible to enter given system sleep state if the
+ * conditions aren't right.
+ * There is the %pm_valid_only_mem function available that can be assigned
+ * to this if the platform only supports mem sleep.
  *
- * @enter: Enter the given suspend state, must be assigned. Can return a
- * negative error code if necessary.
+ * @set_target: Tell the platform which system sleep state is going to be
+ * entered.
+ * @set_target() is executed right prior to suspending devices.  The
+ * information conveyed to the platform code by @set_target() should be
+ * disregarded by the platform as soon as @finish() is executed and if
+ * @prepare() fails.  If @set_target() fails (ie. returns nonzero),
+ * @prepare(), @enter() and @finish() will not be called by the PM core.
+ * This callback is optional.  However, if it is implemented, the argument
+ * passed to @prepare(), @enter() and @finish() is meaningless and should
+ * be ignored.
  *
- * @finish: Called when the system has left the given 

Linux 2.6.22-rc7

2007-07-01 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a38d6181ff27824c79fc7df825164a212eff6a3f
Commit: a38d6181ff27824c79fc7df825164a212eff6a3f
Parent: 2391dae3e36c19fe668c71eac2eb8344dbaaf46d
Author: Linus Torvalds [EMAIL PROTECTED]
AuthorDate: Sun Jul 1 12:54:24 2007 -0700
Committer:  Linus Torvalds [EMAIL PROTECTED]
CommitDate: Sun Jul 1 12:54:24 2007 -0700

Linux 2.6.22-rc7

Last -rc? That's the plan..
---
 Makefile |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 8a3c271..c6f7b71 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 22
-EXTRAVERSION = -rc6
+EXTRAVERSION = -rc7
 NAME = Holy Dancing Manatees, Batman!
 
 # *DOCUMENTATION*
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html