kernel: delete k_futex_init()

There's no need for a system call for this; futexes live in
user memory and the initialization bit is ignored.

It's sufficient to just do an atomic_set().

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-06-28 10:37:06 -07:00 committed by Andrew Boie
commit 8753becbe1
3 changed files with 9 additions and 45 deletions

View file

@ -2139,17 +2139,6 @@ struct z_futex_data {
* @{
*/
/**
* @brief Initialize a futex.
*
* This routine initializes a futex object, prior to its first use.
*
* @param futex Address of the k_futex.
*
* @return N/A
*/
__syscall void k_futex_init(struct k_futex *futex);
/**
* @brief Pend the current thread on a futex
*