mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
2bace8b951
Improve the example code to be at least useable, as in not causing harm (as shown below). Code can still be improved further, but this adds some basic safeguards. 1. hpfall *MUST* mlockall(MCL_CURRENT|MCL_FUTURE); itself! Since the Program sits and waits most of the time it becomes very likely swapped out. If it gets woken up when the laptop drops from the table while it is swapped out it actually triggers harddrive activity! 2. Daemonize hpfall using 'daemon(0,0)' (quick and dirty). 3. Give hpfall realtime priority. Should give a chance that it has less latency when woken up. Signed-off-by: Christian Thaeter <ct@pipapo.org> Signed-off-by: Frans Pop <elendil@planet.nl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz> |
||
---|---|---|
.. | ||
abituguru | ||
abituguru-datasheet | ||
abituguru3 | ||
adm1021 | ||
adm1025 | ||
adm1026 | ||
adm1031 | ||
adm9240 | ||
ads7828 | ||
adt7462 | ||
adt7470 | ||
adt7473 | ||
adt7475 | ||
asb100 | ||
coretemp | ||
dme1737 | ||
ds1621 | ||
f71805f | ||
f71882fg | ||
fscher | ||
g760a | ||
gl518sm | ||
hpfall.c | ||
ibmaem | ||
it87 | ||
k8temp | ||
lis3lv02d | ||
lm63 | ||
lm70 | ||
lm75 | ||
lm77 | ||
lm78 | ||
lm80 | ||
lm83 | ||
lm85 | ||
lm87 | ||
lm90 | ||
lm92 | ||
lm93 | ||
ltc4215 | ||
ltc4245 | ||
max1619 | ||
max6650 | ||
pc87360 | ||
pc87427 | ||
pcf8591 | ||
sis5595 | ||
smsc47b397 | ||
smsc47m1 | ||
smsc47m192 | ||
sysfs-interface | ||
thmc50 | ||
tmp401 | ||
tmp421 | ||
userspace-tools | ||
via686a | ||
vt1211 | ||
w83l785ts | ||
w83l786ng | ||
w83627ehf | ||
w83627hf | ||
w83781d | ||
w83791d | ||
w83792d | ||
w83793 | ||
wm831x | ||
wm8350 |