forked from torvalds/linux
-
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.
locking/static_keys: Provide a selftest
The 'jump label' self-test is in reality testing static keys - rename things accordingly. Also prettify the code in various places while at it. Acked-by: Peter Zijlstra (Intel) <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Jason Baron <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/0c091ecebd78a879ed8a71835d205a691a75ab4e.1438227999.git.jbaron@akamai.com Signed-off-by: Ingo Molnar <[email protected]>
- Loading branch information
Ingo Molnar
committed
Aug 3, 2015
1 parent
579e1ac
commit 2bf9e0a
Showing
8 changed files
with
253 additions
and
253 deletions.
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
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 was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
/* | ||
* Kernel module for testing jump labels. | ||
* Kernel module for testing static keys. | ||
* | ||
* Copyright 2015 Akamai Technologies Inc. All Rights Reserved | ||
* | ||
|
@@ -47,7 +47,7 @@ static void invert_key(struct static_key *key) | |
static_key_enable(key); | ||
} | ||
|
||
static int __init test_jump_label_base_init(void) | ||
static int __init test_static_key_base_init(void) | ||
{ | ||
invert_key(&base_inv_old_true_key); | ||
invert_key(&base_inv_old_false_key); | ||
|
@@ -57,12 +57,12 @@ static int __init test_jump_label_base_init(void) | |
return 0; | ||
} | ||
|
||
static void __exit test_jump_label_base_exit(void) | ||
static void __exit test_static_key_base_exit(void) | ||
{ | ||
} | ||
|
||
module_init(test_jump_label_base_init); | ||
module_exit(test_jump_label_base_exit); | ||
module_init(test_static_key_base_init); | ||
module_exit(test_static_key_base_exit); | ||
|
||
MODULE_AUTHOR("Jason Baron <[email protected]>"); | ||
MODULE_LICENSE("GPL"); |
Oops, something went wrong.