dev: implement driver objects to organise and identify devices
This commit is contained in:
@@ -173,12 +173,12 @@ extern void end_charge_period(void);
|
||||
|
||||
static inline void task_lock_irqsave(struct task *task, unsigned long *flags)
|
||||
{
|
||||
object_lock(&task->t_base, flags);
|
||||
object_lock_irqsave(&task->t_base, flags);
|
||||
}
|
||||
|
||||
static inline void task_unlock_irqrestore(struct task *task, unsigned long flags)
|
||||
{
|
||||
object_unlock(&task->t_base, flags);
|
||||
object_unlock_irqrestore(&task->t_base, flags);
|
||||
}
|
||||
|
||||
extern struct thread *thread_alloc(void);
|
||||
|
||||
Reference in New Issue
Block a user