OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fakekey: Simplify speakup_fake_key_pressed through this_cpu_ops
[android-x86/kernel.git]
/
drivers
/
staging
/
speakup
/
fakekey.c
diff --git
a/drivers/staging/speakup/fakekey.c
b/drivers/staging/speakup/fakekey.c
index
bf4ec68
..
1b34a87
100644
(file)
--- a/
drivers/staging/speakup/fakekey.c
+++ b/
drivers/staging/speakup/fakekey.c
@@
-95,10
+95,5
@@
void speakup_fake_down_arrow(void)
*/
bool speakup_fake_key_pressed(void)
{
- bool is_pressed;
-
- is_pressed = get_cpu_var(reporting_keystroke);
- put_cpu_var(reporting_keystroke);
-
- return is_pressed;
+ return this_cpu_read(reporting_keystroke);
}