diff options
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/kernel/asm-offsets.c | 1 | ||||
-rw-r--r-- | arch/frv/kernel/frv_ksyms.c | 1 | ||||
-rw-r--r-- | arch/frv/kernel/signal.c | 11 | ||||
-rw-r--r-- | arch/frv/kernel/time.c | 7 |
4 files changed, 8 insertions, 12 deletions
diff --git a/arch/frv/kernel/asm-offsets.c b/arch/frv/kernel/asm-offsets.c new file mode 100644 index 000000000000..9e263112a6e2 --- /dev/null +++ b/arch/frv/kernel/asm-offsets.c | |||
@@ -0,0 +1 @@ | |||
/* Dummy asm-offsets.c file. Required by kbuild and ready to be used - hint! */ | |||
diff --git a/arch/frv/kernel/frv_ksyms.c b/arch/frv/kernel/frv_ksyms.c index 62cfbd9b4f98..1a76d5247190 100644 --- a/arch/frv/kernel/frv_ksyms.c +++ b/arch/frv/kernel/frv_ksyms.c | |||
@@ -71,7 +71,6 @@ EXPORT_SYMBOL(memset); | |||
71 | EXPORT_SYMBOL(memcmp); | 71 | EXPORT_SYMBOL(memcmp); |
72 | EXPORT_SYMBOL(memscan); | 72 | EXPORT_SYMBOL(memscan); |
73 | EXPORT_SYMBOL(memmove); | 73 | EXPORT_SYMBOL(memmove); |
74 | EXPORT_SYMBOL(strtok); | ||
75 | 74 | ||
76 | EXPORT_SYMBOL(get_wchan); | 75 | EXPORT_SYMBOL(get_wchan); |
77 | 76 | ||
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c index 36a2dffc8ebd..d4ccc0728dfe 100644 --- a/arch/frv/kernel/signal.c +++ b/arch/frv/kernel/signal.c | |||
@@ -506,13 +506,12 @@ static void handle_signal(unsigned long sig, siginfo_t *info, | |||
506 | else | 506 | else |
507 | setup_frame(sig, ka, oldset, regs); | 507 | setup_frame(sig, ka, oldset, regs); |
508 | 508 | ||
509 | if (!(ka->sa.sa_flags & SA_NODEFER)) { | 509 | spin_lock_irq(¤t->sighand->siglock); |
510 | spin_lock_irq(¤t->sighand->siglock); | 510 | sigorsets(¤t->blocked, ¤t->blocked, &ka->sa.sa_mask); |
511 | sigorsets(¤t->blocked, ¤t->blocked, &ka->sa.sa_mask); | 511 | if (!(ka->sa.sa_flags & SA_NODEFER)) |
512 | sigaddset(¤t->blocked, sig); | 512 | sigaddset(¤t->blocked, sig); |
513 | recalc_sigpending(); | 513 | recalc_sigpending(); |
514 | spin_unlock_irq(¤t->sighand->siglock); | 514 | spin_unlock_irq(¤t->sighand->siglock); |
515 | } | ||
516 | } /* end handle_signal() */ | 515 | } /* end handle_signal() */ |
517 | 516 | ||
518 | /*****************************************************************************/ | 517 | /*****************************************************************************/ |
diff --git a/arch/frv/kernel/time.c b/arch/frv/kernel/time.c index 075db6644694..8d6558b00e44 100644 --- a/arch/frv/kernel/time.c +++ b/arch/frv/kernel/time.c | |||
@@ -85,7 +85,7 @@ static irqreturn_t timer_interrupt(int irq, void *dummy, struct pt_regs * regs) | |||
85 | * CMOS clock accordingly every ~11 minutes. Set_rtc_mmss() has to be | 85 | * CMOS clock accordingly every ~11 minutes. Set_rtc_mmss() has to be |
86 | * called as close as possible to 500 ms before the new second starts. | 86 | * called as close as possible to 500 ms before the new second starts. |
87 | */ | 87 | */ |
88 | if ((time_status & STA_UNSYNC) == 0 && | 88 | if (ntp_synced() && |
89 | xtime.tv_sec > last_rtc_update + 660 && | 89 | xtime.tv_sec > last_rtc_update + 660 && |
90 | (xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 && | 90 | (xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 && |
91 | (xtime.tv_nsec / 1000) <= 500000 + ((unsigned) TICK_SIZE) / 2 | 91 | (xtime.tv_nsec / 1000) <= 500000 + ((unsigned) TICK_SIZE) / 2 |
@@ -216,10 +216,7 @@ int do_settimeofday(struct timespec *tv) | |||
216 | set_normalized_timespec(&xtime, sec, nsec); | 216 | set_normalized_timespec(&xtime, sec, nsec); |
217 | set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); | 217 | set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); |
218 | 218 | ||
219 | time_adjust = 0; /* stop active adjtime() */ | 219 | ntp_clear(); |
220 | time_status |= STA_UNSYNC; | ||
221 | time_maxerror = NTP_PHASE_LIMIT; | ||
222 | time_esterror = NTP_PHASE_LIMIT; | ||
223 | write_sequnlock_irq(&xtime_lock); | 220 | write_sequnlock_irq(&xtime_lock); |
224 | clock_was_set(); | 221 | clock_was_set(); |
225 | return 0; | 222 | return 0; |