mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[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:
parent
9fe6fcd8cc
commit
4c4c9432a6
23 changed files with 43 additions and 43 deletions
|
@ -237,7 +237,7 @@ static void nand_store_ecc(unsigned char *data, unsigned char *ecc) {
|
|||
#define SPARE 0xfffffffe
|
||||
#define UNUSABLE 0xfffffffd
|
||||
|
||||
static int erase_bad_lba_entries = 0;
|
||||
static const int erase_bad_lba_entries = 0;
|
||||
|
||||
/* send vendor interface command (0x41) */
|
||||
/* called for requests 0, 1, 8 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue