Revision edb6fa1a6452edf736c04d02e3f6de59043df69e authored by Luuk Paulussen on 07 December 2016, 22:43:34 UTC, committed by Ralf Baechle on 11 December 2016, 10:19:04 UTC
The sync_cmos_clock function in kernel/time/ntp.c first tries to update
the internal clock of the cpu by calling the "update_persistent_clock64"
architecture specific function.  If this returns -ENODEV, it then tries
to update an external RTC using "rtc_set_ntp_time".

On the mips architecture, the weak implementation of the underlying
function would return 0 if it wasn't overridden.  This meant that the
sync_cmos_clock function would never try to update an external RTC
(if both CONFIG_GENERIC_CMOS_UPDATE and CONFIG_RTC_SYSTOHC are
configured)

Returning -ENODEV instead, means that an external RTC will be tried.

Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz>
Reviewed-by: Richard Laing <richard.laing@alliedtelesis.co.nz>
Reviewed-by: Scott Parlane <scott.parlane@alliedtelesis.co.nz>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14649/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 3e5de27
History
File Mode Size
Kconfig -rw-r--r-- 25.2 KB
Makefile -rw-r--r-- 2.9 KB
act_api.c -rw-r--r-- 23.9 KB
act_bpf.c -rw-r--r-- 9.7 KB
act_connmark.c -rw-r--r-- 5.8 KB
act_csum.c -rw-r--r-- 13.8 KB
act_gact.c -rw-r--r-- 6.6 KB
act_ife.c -rw-r--r-- 20.2 KB
act_ipt.c -rw-r--r-- 10.1 KB
act_meta_mark.c -rw-r--r-- 1.9 KB
act_meta_skbprio.c -rw-r--r-- 1.9 KB
act_meta_skbtcindex.c -rw-r--r-- 2.0 KB
act_mirred.c -rw-r--r-- 8.2 KB
act_nat.c -rw-r--r-- 7.4 KB
act_pedit.c -rw-r--r-- 6.9 KB
act_police.c -rw-r--r-- 9.3 KB
act_simple.c -rw-r--r-- 5.7 KB
act_skbedit.c -rw-r--r-- 6.7 KB
act_skbmod.c -rw-r--r-- 7.5 KB
act_tunnel_key.c -rw-r--r-- 8.6 KB
act_vlan.c -rw-r--r-- 7.2 KB
cls_api.c -rw-r--r-- 15.6 KB
cls_basic.c -rw-r--r-- 6.8 KB
cls_bpf.c -rw-r--r-- 14.6 KB
cls_cgroup.c -rw-r--r-- 4.9 KB
cls_flow.c -rw-r--r-- 16.4 KB
cls_flower.c -rw-r--r-- 27.2 KB
cls_fw.c -rw-r--r-- 9.6 KB
cls_matchall.c -rw-r--r-- 7.2 KB
cls_route.c -rw-r--r-- 14.2 KB
cls_rsvp.c -rw-r--r-- 761 bytes
cls_rsvp.h -rw-r--r-- 17.5 KB
cls_rsvp6.c -rw-r--r-- 768 bytes
cls_tcindex.c -rw-r--r-- 15.0 KB
cls_u32.c -rw-r--r-- 27.7 KB
em_canid.c -rw-r--r-- 5.5 KB
em_cmp.c -rw-r--r-- 2.1 KB
em_ipset.c -rw-r--r-- 3.1 KB
em_meta.c -rw-r--r-- 22.9 KB
em_nbyte.c -rw-r--r-- 1.9 KB
em_text.c -rw-r--r-- 3.7 KB
em_u32.c -rw-r--r-- 1.4 KB
ematch.c -rw-r--r-- 14.6 KB
sch_api.c -rw-r--r-- 45.9 KB
sch_atm.c -rw-r--r-- 18.9 KB
sch_blackhole.c -rw-r--r-- 1.1 KB
sch_cbq.c -rw-r--r-- 41.3 KB
sch_choke.c -rw-r--r-- 13.9 KB
sch_codel.c -rw-r--r-- 8.4 KB
sch_drr.c -rw-r--r-- 11.3 KB
sch_dsmark.c -rw-r--r-- 11.2 KB
sch_fifo.c -rw-r--r-- 4.3 KB
sch_fq.c -rw-r--r-- 22.0 KB
sch_fq_codel.c -rw-r--r-- 19.2 KB
sch_generic.c -rw-r--r-- 24.3 KB
sch_gred.c -rw-r--r-- 13.6 KB
sch_hfsc.c -rw-r--r-- 39.6 KB
sch_hhf.c -rw-r--r-- 21.3 KB
sch_htb.c -rw-r--r-- 42.6 KB
sch_ingress.c -rw-r--r-- 4.4 KB
sch_mq.c -rw-r--r-- 5.8 KB
sch_mqprio.c -rw-r--r-- 10.8 KB
sch_multiq.c -rw-r--r-- 9.0 KB
sch_netem.c -rw-r--r-- 27.3 KB
sch_pie.c -rw-r--r-- 15.6 KB
sch_plug.c -rw-r--r-- 6.6 KB
sch_prio.c -rw-r--r-- 7.9 KB
sch_qfq.c -rw-r--r-- 42.0 KB
sch_red.c -rw-r--r-- 8.4 KB
sch_sfb.c -rw-r--r-- 16.5 KB
sch_sfq.c -rw-r--r-- 21.9 KB
sch_tbf.c -rw-r--r-- 13.8 KB
sch_teql.c -rw-r--r-- 12.0 KB

back to top