Skip to content

Commit

Permalink
unified: Fix building of the unified kernel
Browse files Browse the repository at this point in the history
Change-Id: I6824cdb9123a574a56af10efdebdc1c8b82427f8
Signed-off-by: Iván Briano <[email protected]>
  • Loading branch information
ibriano committed Oct 4, 2016
1 parent 340d00a commit 9c7b5ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ struct k_work_q {
* @brief Work flags.
*/
enum {
NANO_WORK_STATE_PENDING, /* Work item pending state */
K_WORK_STATE_PENDING, /* Work item pending state */
};

/**
Expand Down Expand Up @@ -538,7 +538,7 @@ static inline void k_work_submit_to_queue(struct k_work_q *work_q,
*/
static inline int k_work_pending(struct k_work *work)
{
return atomic_test_bit(work->flags, NANO_WORK_STATE_PENDING);
return atomic_test_bit(work->flags, K_WORK_STATE_PENDING);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion kernel/unified/work_q.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void work_q_main(void *work_q_ptr, void *p2, void *p3)
handler = work->handler;

/* Reset pending state so it can be resubmitted by handler */
if (atomic_test_and_reset_bit(work->flags,
if (atomic_test_and_clear_bit(work->flags,
K_WORK_STATE_PENDING)) {
handler(work);
}
Expand Down

0 comments on commit 9c7b5ea

Please sign in to comment.