We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b90e2c3 commit 538de6cCopy full SHA for 538de6c
src/core/shmem.c
@@ -13,7 +13,6 @@ static void shmem_alloc(void)
13
{
14
for (size_t i = 0; i < shmem_table_size; i++) {
15
struct shmem* shmem = &shmem_table[i];
16
- shmem->lock = SPINLOCK_INITVAL;
17
if (!shmem->place_phys) {
18
size_t n_pg = NUM_PAGES(shmem->size);
19
struct ppages ppages = mem_alloc_ppages(shmem->colors, n_pg, false);
@@ -42,6 +41,7 @@ void shmem_init()
42
41
shmem_alloc();
43
44
for (size_t i = 0; i < config.shmemlist_size; i++) {
+ config.shmemlist[i].lock = SPINLOCK_INITVAL;
45
config.shmemlist[i].cpu_masters = 0;
46
}
47
0 commit comments