Changeset 7473807 in mainline for kernel/generic/src/synch
- Timestamp:
- 2018-05-11T20:22:42Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d2c5159
- Parents:
- ae89656
- Location:
- kernel/generic/src/synch
- Files:
-
- 2 edited
-
futex.c (modified) (2 diffs)
-
workqueue.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/futex.c
rae89656 r7473807 339 339 static futex_t *get_and_cache_futex(uintptr_t phys_addr, uintptr_t uaddr) 340 340 { 341 futex_t *futex = malloc(sizeof(futex_t), 0); 341 futex_t *futex = malloc(sizeof(futex_t), FRAME_ATOMIC); 342 if (!futex) 343 return NULL; 342 344 343 345 /* … … 363 365 * Cache the link to the futex object for this task. 364 366 */ 365 futex_ptr_t *fut_ptr = malloc(sizeof(futex_ptr_t), 0); 367 futex_ptr_t *fut_ptr = malloc(sizeof(futex_ptr_t), FRAME_ATOMIC); 368 if (!fut_ptr) { 369 spinlock_lock(&futex_ht_lock); 370 futex_release_ref(futex); 371 spinlock_unlock(&futex_ht_lock); 372 return NULL; 373 } 366 374 cht_link_t *dup_link; 367 375 -
kernel/generic/src/synch/workqueue.c
rae89656 r7473807 187 187 struct work_queue *workq_create(const char *name) 188 188 { 189 struct work_queue *workq = malloc(sizeof(struct work_queue), 0); 189 struct work_queue *workq = malloc(sizeof(struct work_queue), 190 FRAME_ATOMIC); 191 if (!workq) 192 return NULL; 190 193 191 194 if (workq) {
Note:
See TracChangeset
for help on using the changeset viewer.
