kernel: remove left-over code from object monitoring

This code is non-functional and is a left over from an old version of
the kernel that does not work and is covered through other new features
in the kernel, for example object tracing.

Jira: ZEP-2013
Change-Id: Id12ad09e2d06186b53cd2f0dd030ac6d37d1229f
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-04-10 18:23:39 -04:00 committed by Anas Nashif
commit 6ad0420b26
3 changed files with 1 additions and 34 deletions

View file

@ -1894,28 +1894,16 @@ struct k_mutex {
struct k_thread *owner;
uint32_t lock_count;
int owner_orig_prio;
#ifdef CONFIG_OBJECT_MONITOR
int num_lock_state_changes;
int num_conflicts;
#endif
_OBJECT_TRACING_NEXT_PTR(k_mutex);
};
#ifdef CONFIG_OBJECT_MONITOR
#define _MUTEX_INIT_OBJECT_MONITOR \
.num_lock_state_changes = 0, .num_conflicts = 0,
#else
#define _MUTEX_INIT_OBJECT_MONITOR
#endif
#define K_MUTEX_INITIALIZER(obj) \
{ \
.wait_q = SYS_DLIST_STATIC_INIT(&obj.wait_q), \
.owner = NULL, \
.lock_count = 0, \
.owner_orig_prio = K_LOWEST_THREAD_PRIO, \
_MUTEX_INIT_OBJECT_MONITOR \
_OBJECT_TRACING_INIT \
}