arch-lock: tentative implementation of irqflags_can_interrupt for arm64
Change-Id: I814e02e757039cab8c142c0b774ad470154454c1
This commit is contained in:
committed by
Dominique Martinet
parent
d5108dba80
commit
240a23a21b
@@ -607,8 +607,13 @@ __mcs_rwlock_reader_unlock(struct mcs_rwlock_lock *lock, struct mcs_rwlock_node_
|
|||||||
|
|
||||||
static inline int irqflags_can_interrupt(unsigned long flags)
|
static inline int irqflags_can_interrupt(unsigned long flags)
|
||||||
{
|
{
|
||||||
#warning "arm64 irqflags_can_interrupt not implemented"
|
#ifdef CONFIG_HAS_NMI
|
||||||
return true;
|
#warning irqflags_can_interrupt needs testing/fixing on such a target
|
||||||
|
return flags > ICC_PMR_EL1_MASKED;
|
||||||
|
#else
|
||||||
|
// PSTATE.DAIF I bit clear means interrupt is possible
|
||||||
|
return !(flags & (1 << 7));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user