-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 132698 b: refs/heads/master c: 25c38d3 h: refs/heads/master v: v3
- Loading branch information
Huang Ying
authored and
Herbert Xu
committed
Feb 19, 2009
1 parent
a3f42f6
commit 7606e61
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 6fe4a28d8855e072036f36ee22f0a8f43f44918f | ||
refs/heads/master: 25c38d3fb92fc23af7730a1601bc20af8216ae44 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Workqueue for crypto subsystem | ||
* | ||
* Copyright (c) 2009 Intel Corp. | ||
* Author: Huang Ying <ying.huang@intel.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the Free | ||
* Software Foundation; either version 2 of the License, or (at your option) | ||
* any later version. | ||
* | ||
*/ | ||
|
||
#include <linux/workqueue.h> | ||
#include <crypto/algapi.h> | ||
#include <crypto/crypto_wq.h> | ||
|
||
struct workqueue_struct *kcrypto_wq; | ||
EXPORT_SYMBOL_GPL(kcrypto_wq); | ||
|
||
static int __init crypto_wq_init(void) | ||
{ | ||
kcrypto_wq = create_workqueue("crypto"); | ||
if (unlikely(!kcrypto_wq)) | ||
return -ENOMEM; | ||
return 0; | ||
} | ||
|
||
static void __exit crypto_wq_exit(void) | ||
{ | ||
destroy_workqueue(kcrypto_wq); | ||
} | ||
|
||
module_init(crypto_wq_init); | ||
module_exit(crypto_wq_exit); | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_DESCRIPTION("Workqueue for crypto subsystem"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef CRYPTO_WQ_H | ||
#define CRYPTO_WQ_H | ||
|
||
#include <linux/workqueue.h> | ||
|
||
extern struct workqueue_struct *kcrypto_wq; | ||
#endif |