forked from luck/tmp_suning_uos_patched
csky: Enable LOCKDEP_SUPPORT
Lockdep is needed by proving the spinlocks and rwlocks. Currently, we only put trace_hardirqs_on/off with csky_irq and ret_from_exception. Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
This commit is contained in:
parent
de86367871
commit
000591f1ca
|
@ -69,6 +69,9 @@ config CSKY
|
||||||
select PCI_SYSCALL if PCI
|
select PCI_SYSCALL if PCI
|
||||||
select PCI_MSI if PCI
|
select PCI_MSI if PCI
|
||||||
|
|
||||||
|
config LOCKDEP_SUPPORT
|
||||||
|
def_bool y
|
||||||
|
|
||||||
config CPU_HAS_CACHEV2
|
config CPU_HAS_CACHEV2
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
|
|
@ -225,6 +225,13 @@ ret_from_exception:
|
||||||
cmpnei r12, 0
|
cmpnei r12, 0
|
||||||
bt exit_work
|
bt exit_work
|
||||||
1:
|
1:
|
||||||
|
#ifdef CONFIG_TRACE_IRQFLAGS
|
||||||
|
ld r10, (sp, LSAVE_PSR)
|
||||||
|
btsti r10, 6
|
||||||
|
bf 2f
|
||||||
|
jbsr trace_hardirqs_on
|
||||||
|
2:
|
||||||
|
#endif
|
||||||
RESTORE_ALL
|
RESTORE_ALL
|
||||||
|
|
||||||
exit_work:
|
exit_work:
|
||||||
|
@ -280,6 +287,10 @@ ENTRY(csky_irq)
|
||||||
zero_fp
|
zero_fp
|
||||||
psrset ee
|
psrset ee
|
||||||
|
|
||||||
|
#ifdef CONFIG_TRACE_IRQFLAGS
|
||||||
|
jbsr trace_hardirqs_off
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PREEMPTION
|
#ifdef CONFIG_PREEMPTION
|
||||||
mov r9, sp /* Get current stack pointer */
|
mov r9, sp /* Get current stack pointer */
|
||||||
bmaski r10, THREAD_SHIFT
|
bmaski r10, THREAD_SHIFT
|
||||||
|
|
Loading…
Reference in New Issue
Block a user