Changeset 09ab0a9a in mainline for kernel/test/synch/workq-test-core.h
- Timestamp:
- 2018-09-13T12:05:53Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/workq-test-core.h
rb2aaaa0 r09ab0a9a 36 36 #include <synch/workqueue.h> 37 37 38 39 38 typedef struct test_work { 40 39 work_t work_item; … … 46 45 static atomic_t call_cnt[WAVES]; 47 46 48 49 47 /* Fwd decl - implement in your actual test file.. */ 50 48 static int core_workq_enqueue(work_t *work_item, work_func_t func); 51 52 49 53 50 static bool new_wave(test_work_t *work) … … 62 59 } 63 60 } 64 65 61 66 62 static int is_pow2(int num) … … 170 166 WAVES, COUNT, exp_call_cnt * WAVES); 171 167 172 173 168 core_workq_enqueue(&work->work_item, reproduce); 174 169 … … 200 195 } 201 196 202 203 197 if (success) 204 198 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.