diff options
author | Richard Braun <rbraun@sceen.net> | 2013-04-03 23:26:23 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-04-03 23:26:23 +0200 |
commit | ee5ca3d210bd3fd61044b71ced23eced71a746a1 (patch) | |
tree | d737f7844d347a6f72124ec00094391c29a50de9 /phys.c | |
parent | ad227133285fa1f8fcf0614cb2209dab59559a2d (diff) |
phys: fix cpu pool initialization
Diffstat (limited to 'phys.c')
-rw-r--r-- | phys.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -311,6 +311,7 @@ phys_seg_free_to_buddy(struct phys_seg *seg, struct phys_page *page, static void phys_cpu_pool_init(struct phys_cpu_pool *cpu_pool, int size) { + pthread_mutex_init(&cpu_pool->lock, NULL); cpu_pool->size = size; cpu_pool->transfer_size = (size + PHYS_CPU_POOL_TRANSFER_RATIO - 1) / PHYS_CPU_POOL_TRANSFER_RATIO; |