forked from luck/tmp_suning_uos_patched
13b54a5052
Keep track of processes being debugged (including the kernel itself) and turn the OCD system on and off as appropriate. Since enabling debugging turns off some optimizations in the CPU core, this fixes the issue that enabling KProbes support or simply running a program under gdbserver will reduce system performance significantly until the next reboot. The CPU performance will still be reduced for all processes while a process is being debugged, but this is a lot better than reducing the performance forever. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
15 lines
448 B
Makefile
15 lines
448 B
Makefile
#
|
|
# Makefile for the Linux/AVR32 kernel.
|
|
#
|
|
|
|
extra-y := head.o vmlinux.lds
|
|
|
|
obj-$(CONFIG_SUBARCH_AVR32B) += entry-avr32b.o
|
|
obj-y += syscall_table.o syscall-stubs.o irq.o
|
|
obj-y += setup.o traps.o semaphore.o ocd.o ptrace.o
|
|
obj-y += signal.o sys_avr32.o process.o time.o
|
|
obj-y += init_task.o switch_to.o cpu.o
|
|
obj-$(CONFIG_MODULES) += module.o avr32_ksyms.o
|
|
obj-$(CONFIG_KPROBES) += kprobes.o
|
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|