<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/leds/trigger/ledtrig-activity.c, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-07-05T21:21:14Z</updated>
<entry>
<title>leds: activity trigger: simplifications from core changes</title>
<updated>2018-07-05T21:21:14Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2018-07-02T20:05:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=13d698cbd99ce90f1d6b4fb0ff11ab90eb55f55e'/>
<id>urn:sha1:13d698cbd99ce90f1d6b4fb0ff11ab90eb55f55e</id>
<content type='text'>
The trigger core learned error handling for the activate callback and
can handle device attributes now. This allows simplifying the driver
considerably. Note that .deactivate() is only called when .activate()
succeeded, so the check for .activated can go away in .deactivate().

Also make use of module_led_trigger() and the accessor function to get
and set trigger_data.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Acked-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Jacek Anaszewski &lt;jacek.anaszewski@gmail.com&gt;
</content>
</entry>
<entry>
<title>leds: triggers: let struct led_trigger::activate() return an error code</title>
<updated>2018-07-05T21:21:10Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2018-07-02T20:05:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2282e125a406e09331c5a785e3df29035c99a607'/>
<id>urn:sha1:2282e125a406e09331c5a785e3df29035c99a607</id>
<content type='text'>
Given that activating a trigger can fail, let the callback return an
indication. This prevents to have a trigger active according to the
"trigger" sysfs attribute but not functional.

All users are changed accordingly to return 0 for now. There is no intended
change in behaviour.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Acked-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Jacek Anaszewski &lt;jacek.anaszewski@gmail.com&gt;
</content>
</entry>
<entry>
<title>leds: triggers: make the MODULE_LICENSE string match the actual license</title>
<updated>2018-07-05T20:59:36Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2018-07-02T20:05:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=033692eb3ec8305f6e9998b297aaec6899680637'/>
<id>urn:sha1:033692eb3ec8305f6e9998b297aaec6899680637</id>
<content type='text'>
These files are licensed under GPL version 2 only. So use "GPL v2"
instead of "GPL" (which means v2 or later).

Also remove an empty (but commented) line at the end of the license
header which nicely proves in the context that the drivers are really v2
only :-)

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Jacek Anaszewski &lt;jacek.anaszewski@gmail.com&gt;
</content>
</entry>
<entry>
<title>leds: ledtrig-activity: use ktime_get_boot_ns()</title>
<updated>2018-06-19T20:38:29Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2018-06-19T08:18:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d30c8d2031259d6dc360f8c96d362bb36665c99c'/>
<id>urn:sha1:d30c8d2031259d6dc360f8c96d362bb36665c99c</id>
<content type='text'>
get_monotonic_boottime() is deprecated, so let's convert this to
the simpler ktime_get_boot_ns().

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Jacek Anaszewski &lt;jacek.anaszewski@gmail.com&gt;
</content>
</entry>
<entry>
<title>leds: Convert timers to use timer_setup()</title>
<updated>2017-10-25T19:52:22Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2017-10-25T10:30:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49404665b935447d4f2d5509fbff569b7bf8c495'/>
<id>urn:sha1:49404665b935447d4f2d5509fbff569b7bf8c495</id>
<content type='text'>
In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to using the new timer_setup() and from_timer()
to pass the timer pointer explicitly.

Cc: Richard Purdie &lt;rpurdie@rpsys.net&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Cc: Willy Tarreau &lt;w@1wt.eu&gt;
Cc: linux-leds@vger.kernel.org
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Jacek Anaszewski &lt;jacek.anaszewski@gmail.com&gt;
</content>
</entry>
<entry>
<title>leds: ledtrig-activity: Add a system activity LED trigger</title>
<updated>2017-10-06T19:31:03Z</updated>
<author>
<name>Willy Tarreau</name>
</author>
<published>2017-08-28T18:44:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7df4f9a9f0667ee60b1d96c30734c8aa504d5f07'/>
<id>urn:sha1:7df4f9a9f0667ee60b1d96c30734c8aa504d5f07</id>
<content type='text'>
The "activity" trigger was inspired by the heartbeat one, but aims at
providing instant indication of the immediate CPU usage. Under idle
condition, it flashes 10ms every second. At 100% usage, it flashes
90ms every 100ms. The blinking frequency increases from 1 to 10 Hz
until either the load is high enough to saturate one CPU core or 50%
load is reached on a single-core system. Then past this point only the
duty cycle increases from 10 to 90%.

This results in a very visible activity reporting allowing one to
immediately tell whether a machine is under load or not, making it
quite suitable to be used in clusters.

Signed-off-by: Willy Tarreau &lt;w@1wt.eu&gt;
Signed-off-by: Jacek Anaszewski &lt;jacek.anaszewski@gmail.com&gt;
</content>
</entry>
</feed>
