Skip to content

Commit 87dddda

Browse files
committed
Revert "kernel: fix usage of KERNEL_COHERENCE macro"
This reverts commit 67c5e6b. This is causing build issues on some platforms. Revert for now. Signed-off-by: Anas Nashif <[email protected]>
1 parent cf6fb4d commit 87dddda

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

include/spinlock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static ALWAYS_INLINE k_spinlock_key_t k_spin_lock(struct k_spinlock *l)
118118

119119
#ifdef CONFIG_SPIN_VALIDATE
120120
__ASSERT(z_spin_lock_valid(l), "Recursive spinlock %p", l);
121-
# ifdef CONFIG_KERNEL_COHERENCE
121+
# ifdef KERNEL_COHERENCE
122122
__ASSERT_NO_MSG(arch_mem_coherent(l));
123123
# endif
124124
#endif

kernel/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static void bg_thread_main(void *unused1, void *unused2, void *unused3)
157157

158158
z_init_static_threads();
159159

160-
#ifdef CONFIG_KERNEL_COHERENCE
160+
#ifdef KERNEL_COHERENCE
161161
__ASSERT_NO_MSG(arch_mem_coherent(_kernel));
162162
#endif
163163

kernel/sched.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static void update_cache(int preempt_ok)
413413

414414
static void ready_thread(struct k_thread *thread)
415415
{
416-
#ifdef CONFIG_KERNEL_COHERENCE
416+
#ifdef KERNEL_COHERENCE
417417
__ASSERT_NO_MSG(arch_mem_coherent(thread));
418418
#endif
419419

@@ -676,7 +676,7 @@ static void add_thread_timeout(struct k_thread *thread, k_timeout_t timeout)
676676
static void pend(struct k_thread *thread, _wait_q_t *wait_q,
677677
k_timeout_t timeout)
678678
{
679-
#ifdef CONFIG_KERNEL_COHERENCE
679+
#ifdef KERNEL_COHERENCE
680680
__ASSERT_NO_MSG(arch_mem_coherent(wait_q));
681681
#endif
682682

kernel/thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ char *z_setup_new_thread(struct k_thread *new_thread,
571571
z_init_thread_base(&new_thread->base, prio, _THREAD_PRESTART, options);
572572
stack_ptr = setup_thread_stack(new_thread, stack, stack_size);
573573

574-
#ifdef CONFIG_KERNEL_COHERENCE
574+
#ifdef KERNEL_COHERENCE
575575
/* Check that the thread object is safe, but that the stack is
576576
* still cached!
577577
*/

kernel/timeout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void z_add_timeout(struct _timeout *to, _timeout_func_t fn,
9191
return;
9292
}
9393

94-
#ifdef CONFIG_KERNEL_COHERENCE
94+
#ifdef KERNEL_COHERENCE
9595
__ASSERT_NO_MSG(arch_mem_coherent(to));
9696
#endif
9797

0 commit comments

Comments
 (0)