| From | Subject | Date |
|---|---|---|
| Alex Chiang | [PATCH] [RFC] Expose _SUN in /proc/acpi/processor/<...>/info
Hello,
I'm looking for comments on the following patch that exposes _SUN
on processor objects in /proc/acpi/processor/<...>/info.
This didn't get many comments on the linux-acpi list, so I'm
sending to a wider distribution.
I notice that acpiphp exposes _SUN for (hotpluggable) PCI slots
in /sys/bus/pci/slots/N/, where N is the value of _SUN. I'm not
so sure we want to go *exactly* in the same direction for CPUs,
because:
- x86 systems might not implement _SUN for processors
- ia...
| Oct 30, 7:50 pm 2007 |
| Adrian Bunk | [2.6 patch] make ata_scsi_lpm_get() static
ata_scsi_lpm_get() can become static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
380046f657271be470566bb5c762c1599569bac6
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 93bd36c..c4f0c6c 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -120,7 +120,7 @@ static const struct {
{ MEDIUM_POWER, "medium_power" },
};
-const char *ata_scsi_lpm_get(enum link_pm policy)
+static const char *ata_scsi_lpm_get(enum link_pm policy)
{
...
| Oct 30, 7:50 pm 2007 |
| Adrian Bunk | [2.6 patch] proper show_interrupts() prototype
This patch adds a proper prototype for show_interrupts() in
include/linux/interrupt.h
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
arch/h8300/kernel/irq.c | 1 +
fs/proc/proc_misc.c | 2 +-
include/linux/interrupt.h | 2 ++
3 files changed, 4 insertions(+), 1 deletion(-)
3884100dff673abe8667f2e53586ecd705e7af24
diff --git a/arch/h8300/kernel/irq.c b/arch/h8300/kernel/irq.c
index 8dec4dd..5a1b4cf 100644
--- a/arch/h8300/kernel/irq.c
+++ b/arch/h8300/kernel/ir...
| Oct 30, 7:50 pm 2007 |
| Adrian Bunk | [2.6 patch] remove __attribute_used__
This patch removes the deprecated __attribute_used__.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
arch/alpha/lib/dec_and_lock.c | 3 +--
arch/powerpc/boot/Makefile | 2 +-
arch/powerpc/kernel/sysfs.c | 2 +-
arch/powerpc/oprofile/op_model_power4.c | 6 +++---
arch/sparc64/kernel/unaligned.c | 2 +-
arch/um/include/init.h | 18 +++++++++---------
drivers/rapidio/rio.h | 2 +-
fs/compa...
| Oct 30, 7:50 pm 2007 |
| David Rientjes | Re: [2.6 patch] remove __attribute_used__
Acked-by: David Rientjes <rientjes@google.com>
-
| Oct 30, 7:54 pm 2007 |
| Michal Januszewski | [PATCH] Fix a spurious kfree_skb() call
Remove a spurious call to kfree_skb() in the connector rx_skb handler.
This fixes a regression introduced by the '[NET]: make netlink user ->
kernel interface synchronious' patch (cd40b7d3983c708aabe3d3008ec64ffce56d33b0)
Signed-off-by: Michal Januszewski <spock@gentoo.org>
---
diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c
index 0e328d3..6883fcb 100644
--- a/drivers/connector/connector.c
+++ b/drivers/connector/connector.c
@@ -218,7 +218,7 @@ static void cn...
| Oct 30, 7:10 pm 2007 |
| Daniel Walker | [PATCH -rt] remove in_interrupt() BUG_ON in exit path
As you can see from the patch there is already a case to catch this type
of problem. This BUG_ON() adds a resursive OOPS , since BUG() causes an OOPS
and the OOPS just calls do_exit() , and do_exit() just causes another OOPS with
this BUG_ON().. If we call panic() here then it's clear what the problem was,
instead of causing an endless recursive crash.
Signed-off-by: Daniel Walker <dwalker@mvista.com>
---
kernel/exit.c | 1 -
1 file changed, 1 deletion(-)
Index: linux-2.6.23.1/kern...
| Oct 30, 6:40 pm 2007 |
| Steven Rostedt | Re: [PATCH -rt] remove in_interrupt() BUG_ON in exit path
--
I did this change once before, while debugging. I had the same issue. This
BUG_ON was giving me recursive crashes that prevented me knowing WTF was
going on. I thought I even submitted a patch to remove it. Perhaps I
forgot to. Nope, I did!
http://www.ussg.iu.edu/hypermail/linux/kernel/0707.0/1804.html
Since the change is added by the preempt-realtime-core.patch, I'll just
remove it from there.
IOW, I'll fold this into that patch.
-- Steve
-
| Oct 30, 7:44 pm 2007 |
| Daniel Walker | Re: [PATCH -rt] remove in_interrupt() BUG_ON in exit path
I wonder if Ingo had his reasons for keeping it.. They're may have been
a benefit to doing a BUG_ON at one point .. I don't know ..
Daniel
-
| Oct 30, 7:43 pm 2007 |
| Steven Rostedt | Re: [PATCH -rt] remove in_interrupt() BUG_ON in exit path
--
I don't know. But since we now know at least two people got burned by this
BUG_ON being there (you and me). Maybe this was added before panic did a
dump_stack. Which I have no idea why the mainline doesn't dump_stack on
panic.
Hmm, I think I'll send a patch to see what people say ;-)
-- Steve
-
| Oct 30, 7:53 pm 2007 |
| john_flowers | fakephp problem in 2.6.22 (and 2.6.21)
Dear Linux PCI,
Kernel Version(s): 2.6.22 (Ubuntu 7.10) and 2.6.21 (Fedora Core 7)
I am trying to use fakephp to rescan the PCI bus when I reload my PCI Interface FPGA.
When I reload the FPGA, lspci shows "[disabled]" for the original Base Address Regions. My hope is that a rescan will re-enumerate the bus and fill in the PCI Settings on the FPGA interface. In fact, I can use setpci to re-enable the board after loading FPGA, but only if I have not changed any of the core parameters. I would hope th...
| Oct 30, 6:00 pm 2007 |
| Roland Dreier | [GIT PULL] please pull infiniband.git
Linus, please pull from
master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband.git for-linus
This tree is also available from kernel.org mirrors at:
git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git for-linus
This will pull some fixes for 2.6.24:
Anton Blanchard (1):
IB/fmr_pool: Stop ib_fmr threads from contributing to load average
Dave Olson (1):
IB/ipath: Fix incorrect use of sizeof on msg buffer (function argument)
Michael Albaugh (1):
...
| Oct 30, 6:17 pm 2007 |
| Jeff Mahoney | [PATCH] mmap: restore -ENODEV on missing f_op->mmap
Commit 80c5606c3b45e0176c32d3108ade1e1cb0b954f3 from Linus moved the
VM_MAYEXEC code further down, but in the process broke the mmap_23_1
test from the LTP suite.
Moving it down means that the test for FMODE_READ ends up above
the test for f_op->mmap. If the write side of the pipe is called for
mmap(), we end up returning -EACCES rather than -ENODEV. Was this
an intended change of behavior? Unless there's a global error precedence
in SuS that I missed, I think both error codes could be ...
| Oct 30, 6:20 pm 2007 |
| Linus Torvalds | Re: [PATCH] mmap: restore -ENODEV on missing f_op->mmap
Hmm.. I think it's kind of stupid adding that special case early on, just
to get one particular error case return when there are multiple possible
ones.
I don't care deeply, but this does smell like a test issue rather than a
code issue.
Looking at that path, there are *other* things that might be worth
cleaning up, but this wasn't one of them..
Linus
---
diff --git a/mm/mmap.c b/mm/mmap.c
index facc1a7..fe286f7 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -893,7 +893,6 @@ uns...
| Oct 30, 6:45 pm 2007 |
| Randy Dunlap | Re: [PATCH] mmap: restore -ENODEV on missing f_op->mmap
Jeff, will you (at least) notify the LTP project of this issue and
need for a patch?
---
~Randy
-
| Oct 30, 7:13 pm 2007 |
| Medve Emilian-EMMEDVE1 | (No subject)
Hello David,
This commit
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commi
tdiff;h=502ef38da15d817f8e67acefc12dc2212f7f8aa1 makes make
headers_check fail like this.
CHECK include/linux/tipc_config.h
/home/emmedve1/Projects/Linux/swang/linux/usr/include/linux/tipc_config.
h requires linux/string.h, which does not exist in exported headers
I'm not sure whether the right solution is to include string.h to
include/linux/Kbuild (maybe not) or just remove linux/string.h...
| Oct 30, 5:41 pm 2007 |
| Shawn Jin | Multiple MSI messages support
Hi,
If this is really off-topic here, I apologize first. But I cannot
think a better place to ask this particular question.
I understand that the current PCI subsystem or linux kernel (x86)
supports only one message when MSI is enabled even for devices having
multiple MSI messages. But why? Is this a limitation solely due to the
OS or due to the x86 APIC?
I know the current linux kernel (2.6.23) changed MSI message data
format a little bit to support other architectures. But some older
versio...
| Oct 30, 5:13 pm 2007 |
| Jeff Garzik | Re: Multiple MSI messages support
IMO it's more like there has never been enough need for anybody to look
into it, I bet...
The way drivers are written, you are typically must touch a few key
hardware registers _anyway_, so the multiple messages in practice are
not much more useful than the simple fact that your MSI irq handler
function was called (with all that indicates and implies).
Jeff
-
| Oct 30, 6:23 pm 2007 |
| Roland Dreier | Re: Multiple MSI messages support
> > If this is really off-topic here, I apologize first. But I cannot
> > think a better place to ask this particular question.
> > I understand that the current PCI subsystem or linux kernel (x86)
> > supports only one message when MSI is enabled even for devices having
> > multiple MSI messages. But why? Is this a limitation solely due to the
> > OS or due to the x86 APIC?
> > I know the current linux kernel (2.6.23) changed MSI message data
> &g...
| Oct 30, 6:51 pm 2007 |
| David Miller | Re: Multiple MSI messages support
From: Roland Dreier <rdreier@cisco.com>
Right, and this is used heavily in the NIU driver for example.
-
| Oct 30, 7:02 pm 2007 |
| Andrew Morton | Re: [PATCH 1/2] usb_gigaset: suspend support [v2]
On Mon, 29 Oct 2007 22:41:30 +0100 (CET)
ditto.
-
| Oct 30, 5:01 pm 2007 |
| Olivér Pintér | compile error in 2.6.24-rc1-git6 HEAD is on ea45d15394c57cb2...
CHECK include/linux/tipc_config.h
/home/oliver/develop/kernel/v2.6.24-git1-git6+/usr/include/linux/tipc_config.h
requires linux/string.h, which does not exist in exported headers
make[3]: *** [/home/oliver/develop/kernel/v2.6.24-git1-git6+/usr/include/linux/.check.tipc_config.h]
Error 1
make[2]: *** [linux] Error 2
make[1]: *** [headers_check] Error 2
make: *** [vmlinux] Error 2
----------
.config:
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.24-rc1-g...
| Oct 30, 4:44 pm 2007 |
| David Miller | Re: compile error in 2.6.24-rc1-git6 HEAD is on ea45d15394c5...
From: "Olivér_Pintér" <oliver.pntr@gmail.com>
I'll take care of this, thanks for the report.
-
| Oct 30, 5:45 pm 2007 |
| Kristof Provost | Re: compile error in 2.6.24-rc1-git6 HEAD is on ea45d15394c5...
It was broken in commit 502ef38da15d817f8e67acefc12dc2212f7f8aa1
Take a look at http://bugzilla.kernel.org/show_bug.cgi?id=3D9260 for more
details.
Kristof=20
| Oct 30, 4:55 pm 2007 |
| Jun'ichi Nomura | [PATCH] dm: Fix panic on shrinking device size
Hi,
This patch fixes a panic on shrinking DM device, due to reference
outside of the DM table.
The problem occurs only if there is outstanding I/O to the removed
part of the device.
The bug is in that __clone_and_map() assumes dm_table_find_target()
always returns a valid pointer.
It may fail if a BIO is sent from the block layer but its target
sector is already not in the DM table.
This patch tidies up dm_table_find_target() to return NULL
instead of bogus pointer for failure case.
Then ...
| Oct 30, 4:34 pm 2007 |
| Adrian Bunk | [2.6 patch] fix drivers/net/wan/lmc/ compilation
Documentation/SubmitChecklist, point 1:
<-- snip -->
...
CC drivers/net/wan/lmc/lmc_main.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/net/wan/lmc/lmc_main.c: In function ‘lmc_ioctl’:
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/net/wan/lmc/lmc_main.c:239: error: expected expression before ‘else’
...
make[5]: *** [drivers/net/wan/lmc/lmc_main.o] Error 1
<-- snip -->
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
d5e92a30491abf073e0a7f4d4...
| Oct 30, 4:31 pm 2007 |
| Roel Kluin | Re: [2.6 patch] fix drivers/net/wan/lmc/ compilation
I am sorry, my patch broke this and Kristov Provost also noticed this.
See http://lkml.org/lkml/2007/10/30/355
-
| Oct 30, 4:45 pm 2007 |
| Andrey Borzenkov | [2.6.24-rc1 regression] AC adapter state does not change aft...
I suspect new ACPI AC adapter code but have to add some printk's to be sure.
To reproduce - plug in AC cord, suspend, unplug, resume - kpowersave and sy=
sfs=20
still show AC adapter online. Or other way round.
=2Dandrey
| Oct 30, 4:24 pm 2007 |
| Alexey Starikovskiy | Re: [2.6.24-rc1 regression] AC adapter state does not change...
Please check if this patch helps.
Regards,
Alex.
| Oct 30, 5:09 pm 2007 |
| Rafael J. Wysocki | Re: [2.6.24-rc1 regression] AC adapter state does not change...
Is this a resume from RAM or from disk?
Does 2.6.23 work correctly?
Rafael
-
| Oct 30, 5:24 pm 2007 |
| Alexey Starikovskiy | Re: [2.6.24-rc1 regression] AC adapter state does not change...
The only change to drivers/acpi/ac.c after .23 was d5b4a3d0efa36de31b86d5677dad6c36cb8735d7.
Don't see how it could lead to less messages from AC.
Regards,
Alex.
-
| Oct 30, 4:36 pm 2007 |
| Andrey Borzenkov | [PATCH] 2.6.24: make /proc/acpi/ac_adapter dependent on ACPI...
--Boundary-01=_/I5JHY9F5ppequm
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Let's make it consistent with battery code; also it fixes HAL case of=20
duplicated adapters. Somebody will have to sort out HAL with ACPI_PROCFS=20
case ...
=2Dandrey
--Boundary-01=_/I5JHY9F5ppequm
Content-Type: text/x-diff;
charset="us-ascii";
name="ac_adapter-without-procfs"
Content-Transfer-Encoding: quoted-printable
Content-Disposi...
| Oct 30, 4:21 pm 2007 |
| Dave Hansen | fix marker warnings
I'm seeing these in the latest git:
kernel/marker.c: In function `marker_probe_unregister':
kernel/marker.c:355: warning: `probe_module' might be used uninitialized in this function
kernel/marker.c: In function `marker_probe_unregister_private_data':
kernel/marker.c:389: warning: `probe_module' might be used uninitialized in this function
kernel/marker.c:392: warning: `entry' might be used uninitialized in this function
It's due to gcc not detecting that the need_update condition is actually
cons...
| Oct 30, 4:05 pm 2007 |
| Emil Medve | [PATCH v2] Make the dev_*() family of macros in device.h com...
Removed duplicates defined elsewhere
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
---
The macros are defined in the relative order KERN_* are defined in kernel.h
linux-2.6> scripts/checkpatch.pl 0001-Make-the-dev_-family-of-macros-in-device.h-comple.patch
Your patch has no obvious style problems and is ready for submission.
drivers/i2c/chips/isp1301_omap.c | 6 ------
drivers/isdn/gigaset/gigaset.h | 6 ------
include/linux/device.h | 24 ++++++++++++...
| Oct 30, 3:37 pm 2007 |
| Erez Zadok | [PATCH v3] 0/4 fs/ioctl.c coding style, function renaming/fa...
This series of 4 proposed patches (take 3) changes fs/ioctl.c and Unionfs as
follows. This series is against v2.6.24-rc1-423-g97855b4.
Patch 1: just applies coding standards to fs/ioctl.c (while I'm at it, I
figured it's worth cleaning VFS files one at a time).
Patch 2: does two things:
(a) Renames the 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_...
| Oct 30, 3:39 pm 2007 |
| Andrew Morton | Re: [PATCH v3] 0/4 fs/ioctl.c coding style, function renamin...
On Tue, 30 Oct 2007 15:39:55 -0400
The problem is of course that you need these in your tree for ongoing
development, but 2.6.25 is months away. They look OK to me so I suggest
that you go ahead and commit them to your git tree and I'll drop them
again. Please resend them for merging in the 2.6.25-rc1 merge window.
unionfs has been hanging around for a long time now and we should work
towards getting it into 2.6.25 or dropped from -mm (sorry). Right now
would be a great time to get this proc...
| Oct 30, 7:04 pm 2007 |
| Erez Zadok | [PATCH 3/4] VFS: factor out three helpers for FIBMAP/FIONBIO...
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
---
fs/ioctl.c | 129 +++++++++++++++++++++++++++++++++++-------------------------
1 files changed, 75 insertions(+), 54 deletions(-)
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 1ab7b7d..cd8c1a3 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -53,32 +53,34 @@ long vfs_ioctl(struct file *filp, unsigned int cmd,
}
EXPORT_SYMBOL_GPL(vfs_ioctl);
+static int ioctl_fibmap(struct file *filp, int __user *p)
+{
+ struct address_space *mapping = fil...
| Oct 30, 3:39 pm 2007 |
| Erez Zadok | [PATCH 2/4] 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 us...
| Oct 30, 3:39 pm 2007 |
| Erez Zadok | [PATCH 1/4] VFS: apply coding standards to fs/ioctl.c
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
---
fs/ioctl.c | 164 +++++++++++++++++++++++++++++++-----------------------------
1 files changed, 84 insertions(+), 80 deletions(-)
diff --git a/fs/ioctl.c b/fs/ioctl.c
index c2a773e..652cacf 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -12,8 +12,8 @@
#include <linux/fs.h>
#include <linux/security.h>
#include <linux/module.h>
+#include <linux/uaccess.h>
-#include <asm/uaccess.h>
#include <asm/ioctl...
| Oct 30, 3:39 pm 2007 |
| Erez Zadok | [PATCH 4/4] Unionfs: use vfs_ioctl
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
---
fs/unionfs/commonfops.c | 36 ++++++------------------------------
1 files changed, 6 insertions(+), 30 deletions(-)
diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
index 7654bcb..c99b519 100644
--- a/fs/unionfs/commonfops.c
+++ b/fs/unionfs/commonfops.c
@@ -661,35 +661,6 @@ out:
return err;
}
-/* pass the ioctl to the lower fs */
-static long do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
-{
- ...
| Oct 30, 3:39 pm 2007 |
| Mathieu Desnoyers | [patch 13/28] Add cmpxchg_local, cmpxchg64 and cmpxchg64_loc...
Add the primitives cmpxchg_local, cmpxchg64 and cmpxchg64_local to ia64. They
use cmpxchg_acq as underlying macro, just like the already existing ia64
cmpxchg().
Changelog:
ia64 cmpxchg_local coding style fix
Quoting Keith Owens:
As a matter of coding style, I prefer
#define cmpxchg_local cmpxchg
#define cmpxchg64_local cmpxchg64
Which makes it absolutely clear that they are the same code. With your
patch, humans have to do a string compare of two defines to see if they
are the same....
| Oct 30, 3:16 pm 2007 |
| Andrey Borzenkov | 2.6.24: (ACPI AC adapter) sending {proc,netlink,kobject}_eve...
Is it valid to send events from within ->resume device method? If not, what=
is=20
the proper way to notify user space about hardware changes during suspensio=
n?=20
Specifically it seems that new sysfs ACPI power supply interface sometimes=
=20
missing plugged in AC cord during suspend. I suspect that no event is=20
generated for this; I am not sure whether ACPI is required to generate such=
=20
events at all in this case.
I'll need some time to get reproducible case so I do not categorize ...
| Oct 30, 3:33 pm 2007 |
| Rafael J. Wysocki | Re: 2.6.24: (ACPI AC adapter) sending {proc,netlink,kobject}...
It is or at least it should be. The GPEs are supposed to be fully functional
Is the "[2.6.24-rc1 regression] AC adapter state does not change after resume"
message a follow-up to this one?
Rafael
-
| Oct 30, 5:28 pm 2007 |
| Timur Tabi | checkpatch bug: space between left parenthesis and asterisk
I'm running checkpatch.pl (dated 10/17), and it complains about this line:
crc = __be32_to_cpu(* ((__be32 *) ((void *) firmware + calc_size)));
the message I get is:
ERROR: need space before that '*' (ctx:BxW)
#721: FILE: arch/powerpc/sysdev/qe_lib/qe.c:527:
+ crc = __be32_to_cpu(* ((__be32 *) ((void *) firmware + calc_size)));
^
so I add a space, and now I get this:
ERROR: no space after that open parenthesis '('
#721: FILE: arch/powerpc/sysdev/qe_lib/q...
| Oct 30, 3:27 pm 2007 |
| Andy Whitcroft | Re: checkpatch bug: space between left parenthesis and aster...
Hmmm, i've looked back a couple of releases and this seems to get
reported correctly. Removing this space is then silent.
ERROR: no space after that '*' (ctx:BxW)
#4: FILE: Z31.c:1:
+ crc = __be32_to_cpu(* ((__be32 *) ((void *) firmware + calc_size)));
What version is checkpatch reported as? Also can I have the entire diff
hunk this is from in case its being caused by the context, though that
seems unlikely.
Thanks.
-apw
-
| Oct 30, 5:46 pm 2007 |
| Zach Brown | Re: checkpatch bug: space between left parenthesis and aster...
Well, that is a bit of a stinker. Maybe it could be reworked a little
to make it easier for humans and checkpatch to understand?
__be32 *crazy_pointer = (void *)firmware + calc_size;
crc = be32_to_cpu(*crazy_pointer);
(Does this need to worry about get_unaligned() at all?)
- z
-
| Oct 30, 3:54 pm 2007 |
| Timur Tabi | Re: checkpatch bug: space between left parenthesis and aster...
[Empty message]
| Oct 30, 4:02 pm 2007 |
| Andrey Borzenkov | 2.6.24 - self-destructing sysfs attributes
I realized that in patch for ACPI battery I created perfect example of=20
self-destructing sysfs attributes. Basically, on every access to battery=20
properties we check battery status. If ACPI reports battery not present, we=
=20
remove sysfs power_supply object. I.e.
=2D> user space queries e.g. .../PNP0C0A:00/power_supply/BAT1/energy_now
-> call acpi_battery_update
-> battery gone
-> call power_supply_unregister(.../PNP0C0A:00/power_supply)
I remember discussion abou...
| Oct 30, 3:23 pm 2007 |
| Mathieu Desnoyers | [patch 19/28] Add cmpxchg_local to m68knommu
Use the new generic cmpxchg_local (disables interrupt). Also use the generic
cmpxchg as fallback if SMP is not set.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
CC: clameter@sgi.com
CC: gerg@uclinux.org
---
include/asm-m68knommu/system.h | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)
Index: linux-2.6-lttng/include/asm-m68knommu/system.h
===================================================================
--- linux-2.6-lttng.orig/...
| Oct 30, 3:16 pm 2007 |
| Mathieu Desnoyers | [patch 05/28] Add cmpxchg64 and cmpxchg64_local to powerpc
Make sure that at least cmpxchg64_local is available on all architectures to use
for unsigned long long values.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Acked-by: Paul Mackerras <paulus@samba.org>
CC: linuxppc-dev@ozlabs.org
---
include/asm-powerpc/system.h | 6 ++++++
1 file changed, 6 insertions(+)
Index: linux-2.6-lttng/include/asm-powerpc/system.h
===================================================================
--- linux-2.6-lttng.orig/include/asm-...
| Oct 30, 3:16 pm 2007 |
| previous day | today | next day |
|---|---|---|
| October 29, 2007 | October 30, 2007 | October 31, 2007 |
| Mariusz Kozlowski | [PATCH 01] kmalloc + memset conversion co kzalloc |
| Rafael J. Wysocki | [Bug #10629] 2.6.26-rc1-$sha1: RIP __d_lookup+0x8c/0x160 |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Jeff Garzik | Re: [RFC] Heads up on sys_fallocate() |
git: | |
| Linus Torvalds | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
