<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/leds/ledtrig-cpu.c, branch linux-3.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-11-11T20:09:43Z</updated>
<entry>
<title>ledtrig-cpu: kill useless mutex to fix sleep in atomic context</title>
<updated>2012-11-11T20:09:43Z</updated>
<author>
<name>Nathan Lynch</name>
</author>
<published>2012-11-05T14:20:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0b8728d6f140dc20690384286ade47c956edc999'/>
<id>urn:sha1:0b8728d6f140dc20690384286ade47c956edc999</id>
<content type='text'>
Seeing the following every time the CPU enters or leaves idle on a
Beagleboard:

BUG: sleeping function called from invalid context at kernel/mutex.c:269
in_atomic(): 1, irqs_disabled(): 0, pid: 0, name: swapper/0
no locks held by swapper/0/0.
[&lt;c001659c&gt;] (unwind_backtrace+0x0/0xf8) from [&lt;c05aaa7c&gt;] (mutex_lock_nested+0x24/0x380)
[&lt;c05aaa7c&gt;] (mutex_lock_nested+0x24/0x380) from [&lt;c043bd1c&gt;] (ledtrig_cpu+0x38/0x88)
[&lt;c043bd1c&gt;] (ledtrig_cpu+0x38/0x88) from [&lt;c000f4b0&gt;] (cpu_idle+0xf4/0x120)
[&lt;c000f4b0&gt;] (cpu_idle+0xf4/0x120) from [&lt;c07e47c8&gt;] (start_kernel+0x2bc/0x30c)

Miles Lane has reported seeing similar splats during system suspend.

The mutex in struct led_trigger_cpu appears to have no function: it
resides in a per-cpu data structure which never changes after the
trigger is registered.  So just remove it.

Reported-by: Miles Lane &lt;miles.lane@gmail.com&gt;
Signed-off-by: Nathan Lynch &lt;ntl@pobox.com&gt;
Signed-off-by: Bryan Wu &lt;roc@roc-samos.(none)&gt;
</content>
</entry>
<entry>
<title>led-triggers: create a trigger for CPU activity</title>
<updated>2012-07-31T13:23:31Z</updated>
<author>
<name>Bryan Wu</name>
</author>
<published>2011-06-25T10:33:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8f88731d052d2b14f332249a9332690ac1b365ac'/>
<id>urn:sha1:8f88731d052d2b14f332249a9332690ac1b365ac</id>
<content type='text'>
Attempting to consolidate the ARM LED code, this removes the
custom RealView LED trigger code to turn LEDs on and off in
response to CPU activity and replace it with a standard trigger.

(bryan.wu@canonical.com:
It introduces several syscore stubs into this trigger.
It also provides ledtrig_cpu trigger event stub in &lt;linux/leds.h&gt;.
Although it was inspired by ARM work, it can be used in other arch.)

Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Bryan Wu &lt;bryan.wu@canonical.com&gt;
Reviewed-by: Jamie Iles &lt;jamie@jamieiles.com&gt;
Tested-by: Jochen Friedrich &lt;jochen@scram.de&gt;
</content>
</entry>
</feed>
