summaryrefslogtreecommitdiff
path: root/sig.h
blob: 10627b81ed3499d232f84ea89da44fb4ee67ed3b (plain)
1
2
3
4
5
6
7
#ifndef SIG_H
#define SIG_H

extern void register_signal(int signal, void (*handler)(int));
extern void register_signal_f(int signal, void (*handler)(int), int flags);

#endif /* SIG_H */
elect>space:mode:
authorBinoy Jayan <binoy.jayan@linaro.org>2016-06-15 11:00:37 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-25 14:39:53 -0700
commit04247e7d65c9ce80a7d19aae2fd7cdf64ce80800 (patch)
tree3f40254e956e98439e0e41f6b254a53e1092d753
parentfa6596982f00e7c341c95174de2275062f14e3fa (diff)
staging: wilc1000: Replace semaphore sync_event with completion
The semaphore 'sync_event' is used as completion, so convert it to a struct completion type. Also, return -ETIME if the return value of wait_for_completion_timeout is 0. Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat