Subversion Repositories Kolibri OS

Rev

Rev 5270 | Rev 5345 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5270 Rev 5272
Line 541... Line 541...
541
}
541
}
542
 
542
 
Line 543... Line 543...
543
static inline int power_supply_is_system_supplied(void) { return -1; }
543
static inline int power_supply_is_system_supplied(void) { return -1; }
Line 544... Line -...
544
 
-
 
545
#define RWSEM_UNLOCKED_VALUE            0x00000000
-
 
546
#define RWSEM_ACTIVE_BIAS               0x00000001
-
 
547
#define RWSEM_ACTIVE_MASK               0x0000ffff
-
 
548
#define RWSEM_WAITING_BIAS              (-0x00010000)
-
 
549
#define RWSEM_ACTIVE_READ_BIAS          RWSEM_ACTIVE_BIAS
-
 
550
#define RWSEM_ACTIVE_WRITE_BIAS         (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
-
 
551
 
-
 
552
 
-
 
553
//static void init_rwsem(struct rw_semaphore *sem)
-
 
554
//{
-
 
555
//    sem->count = RWSEM_UNLOCKED_VALUE;
-
 
556
//    spin_lock_init(&sem->wait_lock);
-
 
557
//    INIT_LIST_HEAD(&sem->wait_list);
-
 
Line 558... Line 544...
558
//}
544