linux/drivers/staging/speakup
Christoph Lameter 4a6f4fe837 drivers: Replace __get_cpu_var with __this_cpu_read if not used for an address.
__get_cpu_var() can be replaced with this_cpu_read and will then use a single
read instruction with implied address calculation to access the correct per cpu
instance.

However, the address of a per cpu variable passed to __this_cpu_read() cannot be
determed (since its an implied address conversion through segment prefixes).
Therefore apply this only to uses of __get_cpu_var where the addres of the
variable is not used.

V3->V4:
	- Move one instance of this_cpu_inc_return to a later patch
	  so that this one can go in without percpu infrastructrure
	  changes.

Sedat: fixed compile failure caused by an extra ')'.

Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2010-12-17 15:07:18 +01:00
..
buffers.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
DefaultKeyAssignments
devsynth.c staging: speakup: devsynth.c: style fixes 2010-10-12 10:50:41 -07:00
fakekey.c drivers: Replace __get_cpu_var with __this_cpu_read if not used for an address. 2010-12-17 15:07:18 +01:00
i18n.c staging: speakup: i18n.c fix long lines 2010-10-19 10:06:04 -07:00
i18n.h
Kconfig
keyhelp.c staging: speakup: keyhelp.c: style fixes 2010-10-12 10:50:42 -07:00
kobjects.c staging: speakup: fix leaks of sysfs groups 2010-10-19 10:10:13 -07:00
main.c staging: speakup: fix memory leak 2010-10-19 10:10:54 -07:00
Makefile Staging: speakup: Makefile: Makefile clean up 2010-10-08 07:26:24 -07:00
selection.c staging: speakup: selection.c style fixes 2010-10-19 10:06:05 -07:00
serialio.c staging: speakup: serialio.c style fixes 2010-10-19 10:06:05 -07:00
serialio.h
speakup_acnt.h
speakup_acntpc.c staging: speakup: speakup_acntpc.c: style fixes 2010-10-15 12:22:35 -07:00
speakup_acntsa.c staging: speakup: speakup_acntsa.c: style fixes 2010-10-15 12:22:35 -07:00
speakup_apollo.c staging: speakup: speakup_apollo.c: style fixes 2010-10-15 12:22:35 -07:00
speakup_audptr.c staging: speakup: speakup_audptr.c: style fixes 2010-10-15 12:22:36 -07:00
speakup_bns.c staging: speakup: speakup_bns.c: style fixes 2010-10-15 12:22:36 -07:00
speakup_decext.c staging: speakup: speakup_decext.c: style fixes 2010-10-15 12:22:36 -07:00
speakup_decpc.c staging: speakup: speakup_decpc.c: style fixes 2010-10-15 12:22:36 -07:00
speakup_dectlk.c staging: speakup: speakup_dectlk.c: style fixes 2010-10-15 12:22:38 -07:00
speakup_dtlk.c staging: speakup: speakup_dtlk.c: style fixes 2010-10-15 12:22:36 -07:00
speakup_dtlk.h
speakup_dummy.c staging: speakup: speakup_dummy.c: style fixes 2010-10-15 12:22:37 -07:00
speakup_keypc.c staging: speakup: speakup_keypc.c: style fixes 2010-10-15 12:22:37 -07:00
speakup_ltlk.c staging: speakup: speakup_ltlk.c: style fixes 2010-10-15 12:22:37 -07:00
speakup_soft.c staging: speakup: speakup_soft.c: style fixes 2010-10-15 12:22:37 -07:00
speakup_spkout.c staging: speakup: speakup_spkout.c: style fixes 2010-10-15 12:22:38 -07:00
speakup_txprt.c staging: speakup: speakup_txprt.c: style fixes 2010-10-15 12:22:38 -07:00
speakup.h staging: speakup: main.c style fixes 2010-10-19 10:06:04 -07:00
speakupmap.h
speakupmap.map
spk_priv_keyinfo.h
spk_priv.h
spk_types.h
spkguide.txt
synth.c staging: speakup: synth.c style fixes 2010-10-19 10:06:05 -07:00
thread.c staging: speakup: thread.c style fixes 2010-10-19 10:06:05 -07:00
TODO
varhandlers.c staging: speakup: varhandlers.c style fixes 2010-10-19 10:06:05 -07:00