Changeset 63e27ef in mainline for kernel/generic/include/synch


Ignore:
Timestamp:
2017-06-19T21:47:42Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
deacc58d
Parents:
7354b5e
Message:

ASSERT → assert

Location:
kernel/generic/include/synch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/synch/rcu.h

    r7354b5e r63e27ef  
    3636#define KERN_RCU_H_
    3737
     38#include <assert.h>
    3839#include <synch/rcu_types.h>
    3940#include <compiler/barrier.h>
     
    162163static inline void _rcu_record_qs(void)
    163164{
    164         ASSERT(PREEMPTION_DISABLED || interrupts_disabled());
     165        assert(PREEMPTION_DISABLED || interrupts_disabled());
    165166       
    166167        /*
     
    207208static inline void rcu_read_lock(void)
    208209{
    209         ASSERT(CPU);
     210        assert(CPU);
    210211        preemption_disable();
    211212
     
    222223static inline void rcu_read_unlock(void)
    223224{
    224         ASSERT(CPU);
     225        assert(CPU);
    225226        preemption_disable();
    226227       
  • kernel/generic/include/synch/spinlock.h

    r7354b5e r63e27ef  
    3838#include <stdbool.h>
    3939#include <arch/barrier.h>
     40#include <assert.h>
    4041#include <preemption.h>
    4142#include <atomic.h>
    42 #include <debug.h>
    4343#include <arch/asm.h>
    4444
     
    8080
    8181#define ASSERT_SPINLOCK(expr, lock) \
    82         ASSERT_VERBOSE(expr, (lock)->name)
     82        assert_verbose(expr, (lock)->name)
    8383
    8484#define spinlock_lock(lock)    spinlock_lock_debug((lock))
     
    9898
    9999#define ASSERT_SPINLOCK(expr, lock) \
    100         ASSERT(expr)
     100        assert(expr)
    101101
    102102#define spinlock_lock(lock)    atomic_lock_arch(&(lock)->val)
     
    175175#define SPINLOCK_STATIC_INITIALIZE_NAME(name, desc_name)
    176176
    177 #define ASSERT_SPINLOCK(expr, lock)  ASSERT(expr)
     177#define ASSERT_SPINLOCK(expr, lock)  assert(expr)
    178178
    179179#define spinlock_initialize(lock, name)
Note: See TracChangeset for help on using the changeset viewer.