aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files/crypto/ocf/random.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-04 20:59:19 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-04 20:59:19 +0000
commit0f34590d5547059b8a8bd1bd3875f2f663fb1e6e (patch)
treee2514d65fed366af6c5f498e58431b2008ccf437 /target/linux/generic-2.6/files/crypto/ocf/random.c
parent98af872a32e530441318bba1b73ed15152db8c83 (diff)
downloadmaster-187ad058-0f34590d5547059b8a8bd1bd3875f2f663fb1e6e.tar.gz
master-187ad058-0f34590d5547059b8a8bd1bd3875f2f663fb1e6e.tar.bz2
master-187ad058-0f34590d5547059b8a8bd1bd3875f2f663fb1e6e.zip
[generic-2.6] update OCF framework to version 20100325
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21356 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/files/crypto/ocf/random.c')
-rw-r--r--target/linux/generic-2.6/files/crypto/ocf/random.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/target/linux/generic-2.6/files/crypto/ocf/random.c b/target/linux/generic-2.6/files/crypto/ocf/random.c
index 94f30416f6..38dad13d77 100644
--- a/target/linux/generic-2.6/files/crypto/ocf/random.c
+++ b/target/linux/generic-2.6/files/crypto/ocf/random.c
@@ -5,8 +5,8 @@
*
* This should be fast and callable from timers/interrupts
*
- * Written by David McCullough <david_mccullough@securecomputing.com>
- * Copyright (C) 2006-2007 David McCullough
+ * Written by David McCullough <david_mccullough@mcafee.com>
+ * Copyright (C) 2006-2010 David McCullough
* Copyright (C) 2004-2005 Intel Corporation.
*
* LICENSE TERMS
@@ -59,6 +59,11 @@
#error "Please do not enable OCF_RANDOMHARVEST unless you have applied patches"
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+#include <linux/sched.h>
+#define kill_proc(p,s,v) send_sig(s,find_task_by_vpid(p),0)
+#endif
+
/*
* a hack to access the debug levels from the crypto driver
*/