[PATCH] USB: mark various usb tables const
patch below marks various USB tables and variables as const so that they end up in .rodata section and don't cacheline share with things that get written to. For the non-array variables it also allows gcc to optimize more. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9fe6fcd8cc
commit
4c4c9432a6
@@ -338,7 +338,7 @@ struct aiptek {
|
||||
* the bitmap which comes from the tablet. This hides the
|
||||
* issue that the F_keys are not sequentially numbered.
|
||||
*/
|
||||
static int macroKeyEvents[] = {
|
||||
static const int macroKeyEvents[] = {
|
||||
KEY_ESC, KEY_F1, KEY_F2, KEY_F3, KEY_F4, KEY_F5,
|
||||
KEY_F6, KEY_F7, KEY_F8, KEY_F9, KEY_F10, KEY_F11,
|
||||
KEY_F12, KEY_F13, KEY_F14, KEY_F15, KEY_F16, KEY_F17,
|
||||
|
Reference in New Issue
Block a user