X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/25a958e9bfd467a5a394adb76601cb6dc525375d..390543dc5acbf7716d03fce88106aa0dbfb2026c:/target/linux/generic-2.6/files/crypto/ocf/random.c 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 94f30416f..38dad13d7 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 - * Copyright (C) 2006-2007 David McCullough + * Written by David McCullough + * 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 +#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 */