android_kernel_oneplus_msm8998/arch/arm
Mark Salyzyn 43ea846c37 ANDROID: clock_gettime(CLOCK_BOOTTIME,) slows down >20x
clock_gettime(CLOCK_BOOTTIME,) slows down after significant
accumulation of suspend time creating a large offset between it and
CLOCK_MONOTONIC time.  The __iter_div_u64_rem() is only for the usage
of adding a few second+nanosecond times and saving cycles on more
expensive remainder and division operations, but iterates one second
at a time which quickly goes out of scale in CLOCK_BOOTTIME's case
since it was specified as nanoseconds only.

The fix is to split off seconds from the boot time and cap the
nanoseconds so that __iter_div_u64_rem does not iterate.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 72406285
Change-Id: Ia647ef1e76b7ba3b0c003028d4b3b955635adabb
2020-11-03 21:30:45 +01:00
..
boot dts: msm8998: disable hotplug in BCL mitigation 2020-11-03 21:30:39 +01:00
common ANDROID: fiq_debugger: remove 2019-08-29 10:02:15 -07:00
configs Merge android-4.4-p.197 (93ec8fb) into msm-4.4 2019-10-30 16:38:04 +05:30
crypto This is the 4.4.181 stable release 2019-06-11 14:23:58 +02:00
firmware
include ANDROID: clock_gettime(CLOCK_BOOTTIME,) slows down >20x 2020-11-03 21:30:45 +01:00
kernel ANDROID: clock_gettime(CLOCK_BOOTTIME,) slows down >20x 2020-11-03 21:30:45 +01:00
kvm Merge android-4.4.192 (da6d147) into msm-4.4 2019-09-11 10:08:38 +05:30
lib ARM: 8796/1: spectre-v1,v1.1: provide helpers for address sanitization 2019-11-10 11:21:35 +01:00
mach-alpine
mach-asm9260
mach-at91 ARM: remove duplicate 'const' annotations' 2017-10-08 10:14:20 +02:00
mach-axxia
mach-bcm ARM: remove duplicate 'const' annotations' 2017-10-08 10:14:20 +02:00
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: Fix writing to wrong PCI config registers after alignment 2019-02-06 19:43:07 +01:00
mach-davinci ARM: davinci: fix sleep.S build error on ARMv4 2019-08-25 10:52:49 +02:00
mach-digicolor
mach-dove
mach-ebsa110
mach-efm32
mach-ep93xx
mach-exynos ARM: exynos: Fix undefined instruction during Exynos5422 resume 2019-06-22 08:18:22 +02:00
mach-footbridge
mach-gemini
mach-highbank
mach-hisi ARM: hisi: check of_iomap and fix missing of_node_put 2018-09-26 08:35:09 +02:00
mach-imx ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set 2019-11-25 15:53:54 +01:00
mach-integrator gpio: pl061: handle failed allocations 2019-02-20 10:13:21 +01:00
mach-iop13xx ARM: iop: don't use using 64-bit DMA masks 2019-05-16 19:45:02 +02:00
mach-iop32x ARM: iop32x/n2100: fix PCI IRQ mapping 2019-02-20 10:13:19 +01:00
mach-iop33x
mach-ixp4xx
mach-keystone
mach-ks8695
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-mmp
mach-moxart
mach-msm
mach-mv78xx0
mach-mvebu ARM: mvebu: declare asm symbols as character arrays in pmsu.c 2018-10-10 08:52:06 +02:00
mach-mxs
mach-netx
mach-nomadik
mach-nspire
mach-omap1 ARM: OMAP1: ams-delta: Fix possible use of uninitialized field 2018-12-17 21:55:09 +01:00
mach-omap2 Merge android-4.4-p.198 (dbd0162) into msm-4.4 2019-10-30 16:41:31 +05:30
mach-orion5x
mach-picoxcell
mach-prima2
mach-pxa ARM: pxa: avoid section mismatch warning 2019-02-20 10:13:09 +01:00
mach-qcom
mach-realview
mach-rockchip
mach-rpc ARM: riscpc: fix DMA 2019-08-06 18:28:24 +02:00
mach-s3c24xx ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify 2019-03-23 08:44:38 +01:00
mach-s3c64xx
mach-s5pv210
mach-sa1100
mach-shmobile
mach-socfpga
mach-spear ARM: remove duplicate 'const' annotations' 2017-10-08 10:14:20 +02:00
mach-sti
mach-stm32
mach-sunxi
mach-tegra Merge android-4.4.118 (5f7f76a) into msm-4.4 2018-03-01 17:20:34 +05:30
mach-u300
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress
mach-vt8500
mach-w90x900
mach-zx
mach-zynq ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up 2019-10-05 12:27:53 +02:00
mm Merge android-4.4-p.200 (903fbe7) into msm-4.4 2019-11-13 10:41:54 +05:30
net
nwfpe
oprofile
plat-iop ARM: iop: don't use using 64-bit DMA masks 2019-05-16 19:45:02 +02:00
plat-omap ARM: OMAP: Fix dmtimer init for omap1 2018-05-30 07:49:00 +02:00
plat-orion ARM: orion: don't use using 64-bit DMA masks 2019-05-16 19:45:02 +02:00
plat-pxa ARM: pxa: ssp: unneeded to free devm_ allocated data 2019-03-23 08:44:27 +01:00
plat-samsung ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms 2019-04-27 09:33:58 +02:00
plat-versatile
probes ARM: 8770/1: kprobes: Prohibit probing on optimized_callback 2018-05-26 08:48:57 +02:00
tools
vdso FROMLIST: lib: vdso: add support for time 2020-11-03 21:30:43 +01:00
vfp This is the 4.4.200 stable release 2019-11-10 16:18:15 +01:00
xen swiotlb-xen: implement xen_swiotlb_dma_mmap callback 2017-10-05 09:41:48 +02:00
Kconfig ARM: 8481/2: drivers: psci: replace psci firmware calls 2019-11-10 11:21:16 +01:00
Kconfig-nommu ARM: 8635/1: nommu: allow enabling REMAP_VECTORS_TO_RAM 2017-10-08 10:14:17 +02:00
Kconfig.debug
Makefile ARM: 8701/1: fix sparse flags for build on 64bit machines 2017-10-30 16:11:46 -07:00