diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-13 05:25:46 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-13 05:25:46 +0100 |
commit | 4da2ad92155a6f71012c25a47195637e48153446 (patch) | |
tree | 90ad7e5e1cfd99df24503a952fcc3ac435b74b21 /src/data.c | |
parent | 1350390458461897bf26760a908571905d871bcf (diff) |
Use __read_mostly attribute when possible
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/data.c')
-rw-r--r-- | src/data.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,8 +43,8 @@ struct decryption_ctx { }; #ifdef CONFIG_WIREGUARD_PARALLEL -static struct kmem_cache *encryption_ctx_cache; -static struct kmem_cache *decryption_ctx_cache; +static struct kmem_cache *encryption_ctx_cache __read_mostly; +static struct kmem_cache *decryption_ctx_cache __read_mostly; int packet_init_data_caches(void) { |