summaryrefslogtreecommitdiff
path: root/crypto/crc32c.c
diff options
context:
space:
mode:
authorChristian Thaeter <ct@pipapo.org>2009-07-25 18:55:15 (GMT)
committerJiri Kosina <jkosina@suse.cz>2009-09-21 13:14:57 (GMT)
commit2bace8b95108746f6123d312f47f5bda4eb17a26 (patch)
treeb6db4a0a0c1aa9c261e4adaeb4dcae5ed7ff4350 /crypto/crc32c.c
parent8103b5cc6216d461047514d188248bd14873624a (diff)
downloadlinux-fsl-qoriq-2bace8b95108746f6123d312f47f5bda4eb17a26.tar.xz
trivial: doc: hpfall: reduce risk that hpfall can do harm
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>
Diffstat (limited to 'crypto/crc32c.c')
0 files changed, 0 insertions, 0 deletions