diff options
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/Kconfig.debug | 31 | ||||
-rw-r--r-- | arch/cris/Makefile | 10 | ||||
-rw-r--r-- | arch/cris/arch-v10/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/cris/arch-v10/kernel/time.c | 2 | ||||
-rw-r--r-- | arch/cris/arch-v32/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/cris/kernel/time.c | 5 |
6 files changed, 16 insertions, 36 deletions
diff --git a/arch/cris/Kconfig.debug b/arch/cris/Kconfig.debug index cd72324935c4..0a1d62a23614 100644 --- a/arch/cris/Kconfig.debug +++ b/arch/cris/Kconfig.debug | |||
@@ -5,10 +5,13 @@ config PROFILING | |||
5 | bool "Kernel profiling support" | 5 | bool "Kernel profiling support" |
6 | 6 | ||
7 | config SYSTEM_PROFILER | 7 | config SYSTEM_PROFILER |
8 | bool "System profiling support" | 8 | bool "System profiling support" |
9 | |||
10 | source "lib/Kconfig.debug" | ||
9 | 11 | ||
10 | config ETRAX_KGDB | 12 | config ETRAX_KGDB |
11 | bool "Use kernel GDB debugger" | 13 | bool "Use kernel GDB debugger" |
14 | depends on DEBUG_KERNEL | ||
12 | ---help--- | 15 | ---help--- |
13 | The CRIS version of gdb can be used to remotely debug a running | 16 | The CRIS version of gdb can be used to remotely debug a running |
14 | Linux kernel via the serial debug port. Provided you have gdb-cris | 17 | Linux kernel via the serial debug port. Provided you have gdb-cris |
@@ -22,25 +25,11 @@ config ETRAX_KGDB | |||
22 | this option is turned on! | 25 | this option is turned on! |
23 | 26 | ||
24 | 27 | ||
25 | config DEBUG_INFO | ||
26 | bool "Compile the kernel with debug info" | ||
27 | help | ||
28 | If you say Y here the resulting kernel image will include | ||
29 | debugging info resulting in a larger kernel image. | ||
30 | Say Y here only if you plan to use gdb to debug the kernel. | ||
31 | If you don't debug the kernel, you can say N. | ||
32 | |||
33 | config FRAME_POINTER | ||
34 | bool "Compile the kernel with frame pointers" | ||
35 | help | ||
36 | If you say Y here the resulting kernel image will be slightly larger | ||
37 | and slower, but it will give very useful debugging information. | ||
38 | If you don't debug the kernel, you can say N, but we may not be able | ||
39 | to solve problems without frame pointers. | ||
40 | |||
41 | config DEBUG_NMI_OOPS | 28 | config DEBUG_NMI_OOPS |
42 | bool "NMI causes oops printout" | 29 | bool "NMI causes oops printout" |
43 | help | 30 | depends on DEBUG_KERNEL |
44 | If the system locks up without any debug information you can say Y | 31 | help |
45 | here to make it possible to dump an OOPS with an external NMI. | 32 | If the system locks up without any debug information you can say Y |
33 | here to make it possible to dump an OOPS with an external NMI. | ||
34 | |||
46 | endmenu | 35 | endmenu |
diff --git a/arch/cris/Makefile b/arch/cris/Makefile index 90ca8730b120..a00043a91f16 100644 --- a/arch/cris/Makefile +++ b/arch/cris/Makefile | |||
@@ -107,8 +107,7 @@ archclean: | |||
107 | rm -f timage vmlinux.bin decompress.bin rescue.bin cramfs.img | 107 | rm -f timage vmlinux.bin decompress.bin rescue.bin cramfs.img |
108 | rm -rf $(LD_SCRIPT).tmp | 108 | rm -rf $(LD_SCRIPT).tmp |
109 | 109 | ||
110 | prepare: $(SRC_ARCH)/.links $(srctree)/include/asm-$(ARCH)/.arch \ | 110 | prepare: $(SRC_ARCH)/.links $(srctree)/include/asm-$(ARCH)/.arch |
111 | include/asm-$(ARCH)/$(SARCH)/offset.h | ||
112 | 111 | ||
113 | # Create some links to make all tools happy | 112 | # Create some links to make all tools happy |
114 | $(SRC_ARCH)/.links: | 113 | $(SRC_ARCH)/.links: |
@@ -120,6 +119,7 @@ $(SRC_ARCH)/.links: | |||
120 | @ln -sfn $(SRC_ARCH)/$(SARCH)/lib $(SRC_ARCH)/lib | 119 | @ln -sfn $(SRC_ARCH)/$(SARCH)/lib $(SRC_ARCH)/lib |
121 | @ln -sfn $(SRC_ARCH)/$(SARCH) $(SRC_ARCH)/arch | 120 | @ln -sfn $(SRC_ARCH)/$(SARCH) $(SRC_ARCH)/arch |
122 | @ln -sfn $(SRC_ARCH)/$(SARCH)/vmlinux.lds.S $(SRC_ARCH)/kernel/vmlinux.lds.S | 121 | @ln -sfn $(SRC_ARCH)/$(SARCH)/vmlinux.lds.S $(SRC_ARCH)/kernel/vmlinux.lds.S |
122 | @ln -sfn $(SRC_ARCH)/$(SARCH)/asm-offsets.c $(SRC_ARCH)/kernel/asm-offsets.c | ||
123 | @touch $@ | 123 | @touch $@ |
124 | 124 | ||
125 | # Create link to sub arch includes | 125 | # Create link to sub arch includes |
@@ -128,9 +128,3 @@ $(srctree)/include/asm-$(ARCH)/.arch: $(wildcard include/config/arch/*.h) | |||
128 | @rm -f include/asm-$(ARCH)/arch | 128 | @rm -f include/asm-$(ARCH)/arch |
129 | @ln -sf $(srctree)/include/asm-$(ARCH)/$(SARCH) $(srctree)/include/asm-$(ARCH)/arch | 129 | @ln -sf $(srctree)/include/asm-$(ARCH)/$(SARCH) $(srctree)/include/asm-$(ARCH)/arch |
130 | @touch $@ | 130 | @touch $@ |
131 | |||
132 | arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ | ||
133 | include/config/MARKER | ||
134 | |||
135 | include/asm-$(ARCH)/$(SARCH)/offset.h: arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s | ||
136 | $(call filechk,gen-asm-offsets) | ||
diff --git a/arch/cris/arch-v10/kernel/entry.S b/arch/cris/arch-v10/kernel/entry.S index c0163bf94a50..c808005e8457 100644 --- a/arch/cris/arch-v10/kernel/entry.S +++ b/arch/cris/arch-v10/kernel/entry.S | |||
@@ -270,7 +270,7 @@ | |||
270 | #include <asm/arch/sv_addr_ag.h> | 270 | #include <asm/arch/sv_addr_ag.h> |
271 | #include <asm/errno.h> | 271 | #include <asm/errno.h> |
272 | #include <asm/thread_info.h> | 272 | #include <asm/thread_info.h> |
273 | #include <asm/arch/offset.h> | 273 | #include <asm/asm-offsets.h> |
274 | #include <asm/page.h> | 274 | #include <asm/page.h> |
275 | #include <asm/pgtable.h> | 275 | #include <asm/pgtable.h> |
276 | 276 | ||
diff --git a/arch/cris/arch-v10/kernel/time.c b/arch/cris/arch-v10/kernel/time.c index 6b7b4e0802e3..dc3dfe9b4a1a 100644 --- a/arch/cris/arch-v10/kernel/time.c +++ b/arch/cris/arch-v10/kernel/time.c | |||
@@ -240,7 +240,7 @@ timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
240 | * The division here is not time critical since it will run once in | 240 | * The division here is not time critical since it will run once in |
241 | * 11 minutes | 241 | * 11 minutes |
242 | */ | 242 | */ |
243 | if ((time_status & STA_UNSYNC) == 0 && | 243 | if (ntp_synced() && |
244 | xtime.tv_sec > last_rtc_update + 660 && | 244 | xtime.tv_sec > last_rtc_update + 660 && |
245 | (xtime.tv_nsec / 1000) >= 500000 - (tick_nsec / 1000) / 2 && | 245 | (xtime.tv_nsec / 1000) >= 500000 - (tick_nsec / 1000) / 2 && |
246 | (xtime.tv_nsec / 1000) <= 500000 + (tick_nsec / 1000) / 2) { | 246 | (xtime.tv_nsec / 1000) <= 500000 + (tick_nsec / 1000) / 2) { |
diff --git a/arch/cris/arch-v32/kernel/entry.S b/arch/cris/arch-v32/kernel/entry.S index a8ed55e5b403..3bd8503fec68 100644 --- a/arch/cris/arch-v32/kernel/entry.S +++ b/arch/cris/arch-v32/kernel/entry.S | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <asm/unistd.h> | 23 | #include <asm/unistd.h> |
24 | #include <asm/errno.h> | 24 | #include <asm/errno.h> |
25 | #include <asm/thread_info.h> | 25 | #include <asm/thread_info.h> |
26 | #include <asm/arch/offset.h> | 26 | #include <asm/asm-offsets.h> |
27 | 27 | ||
28 | #include <asm/arch/hwregs/asm/reg_map_asm.h> | 28 | #include <asm/arch/hwregs/asm/reg_map_asm.h> |
29 | #include <asm/arch/hwregs/asm/intr_vect_defs_asm.h> | 29 | #include <asm/arch/hwregs/asm/intr_vect_defs_asm.h> |
diff --git a/arch/cris/kernel/time.c b/arch/cris/kernel/time.c index fa2d4323da25..a2d99b4aedcd 100644 --- a/arch/cris/kernel/time.c +++ b/arch/cris/kernel/time.c | |||
@@ -114,10 +114,7 @@ int do_settimeofday(struct timespec *tv) | |||
114 | set_normalized_timespec(&xtime, sec, nsec); | 114 | set_normalized_timespec(&xtime, sec, nsec); |
115 | set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); | 115 | set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); |
116 | 116 | ||
117 | time_adjust = 0; /* stop active adjtime() */ | 117 | ntp_clear(); |
118 | time_status |= STA_UNSYNC; | ||
119 | time_maxerror = NTP_PHASE_LIMIT; | ||
120 | time_esterror = NTP_PHASE_LIMIT; | ||
121 | write_sequnlock_irq(&xtime_lock); | 118 | write_sequnlock_irq(&xtime_lock); |
122 | clock_was_set(); | 119 | clock_was_set(); |
123 | return 0; | 120 | return 0; |