aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/timekeeping.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-11Merge tag 'timers-core-2024-03-10' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-12/+12
2024-02-19timekeeping: Fix cross-timestamp interpolation for non-x86Peter Hilber1-4/+2
2024-02-19timekeeping: Fix cross-timestamp interpolation corner case decisionPeter Hilber1-8/+10
2024-02-19timekeeping: Fix cross-timestamp interpolation on counter wrapPeter Hilber1-1/+1
2024-02-07timekeeping: Evaluate system_counterval_t.cs_id instead of .csPeter Hilber1-4/+5
2023-06-05seqlock/latch: Provide raw_read_seqcount_latch_retry()Peter Zijlstra1-2/+2
2023-04-26timekeeping: Fix references to nonexistent ktime_get_fast_ns()Geert Uytterhoeven1-2/+2
2023-01-03time: Fix various kernel-doc problemsRandy Dunlap1-4/+4
2022-07-18timekeeping: contribute wall clock to rng on time changeJason A. Donenfeld1-1/+6
2022-05-24Merge tag 'random-5.19-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-0/+15
2022-05-23Merge tag 'timers-core-2022-05-23' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-11/+28
2022-05-13timekeeping: Add raw clock fallback for random_get_entropy()Jason A. Donenfeld1-0/+15
2022-05-02timekeeping: Consolidate fast timekeeperThomas Gleixner1-10/+10
2022-05-02timekeeping: Annotate ktime_get_boot_fast_ns() with data_race()Thomas Gleixner1-1/+1
2022-04-29timekeeping: Mark NMI safe time accessors as notraceKurt Kanzenbach1-2/+2
2022-04-14timekeeping: Introduce fast accessor to clock taiKurt Kanzenbach1-0/+17
2021-12-17timekeeping: Really make sure wall_to_monotonic isn't positiveYu Liao1-2/+1
2021-08-10hrtimer: Add bases argument to clock_was_set()Thomas Gleixner1-7/+7
2021-08-10time/timekeeping: Avoid invoking clock_was_set() twiceThomas Gleixner1-8/+10
2021-08-10timekeeping: Distangle resume and clock-was-set eventsThomas Gleixner1-1/+3
2021-05-01Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds1-0/+1
2021-04-07time: Add mechanism to recognize clocksource in time_get_snapshotThomas Gleixner1-0/+1
2021-03-29timekeeping: Allow runtime PM from change_clocksource()Niklas Söderlund1-13/+23
2021-03-22timekeeping, clocksource: Fix various typos in commentsIngo Molnar1-5/+5
2021-01-12timekeeping: Remove unused get_seconds()Chunguang Xu1-2/+1
2020-12-16Merge tag 'asm-generic-timers-5.11' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-40/+1
2020-11-15timekeeping: Address parameter documentation issues for various functionsAlex Shi1-2/+5
2020-11-15timekeeping: Fix parameter docs of read_persistent_wall_and_boot_offset()Alex Shi1-2/+3
2020-11-15timekeeping: Add missing parameter docs for pvclock_gtod_[un]register_notifier()Alex Shi1-0/+2
2020-11-15timekeeping: Fix up function documentation for the NMI safe accessorsThomas Gleixner1-25/+33
2020-11-15timekeeping: Add missing parameter documentation for update_fast_timekeeper()Alex Shi1-0/+1
2020-11-15timekeeping: Remove static functions from kernel-doc markupAlex Shi1-7/+5
2020-10-30timekeeping: remove xtime_updateArnd Bergmann1-16/+0
2020-10-30timekeeping: remove arch_gettimeoffsetArnd Bergmann1-24/+1
2020-10-12Merge tag 'locking-core-2020-10-12' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-5/+5
2020-09-10timekeeping: Use seqcount_latch_tAhmed S. Darwish1-5/+5
2020-08-23timekeeping: Provide multi-timestamp accessor to NMI safe timekeeperThomas Gleixner1-11/+65
2020-08-23timekeeping: Utilize local_clock() for NMI safe timekeeper during early bootThomas Gleixner1-8/+25
2020-08-14Merge tag 'timers-urgent-2020-08-14' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-2/+2
2020-08-10Merge tag 'locking-urgent-2020-08-10' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-8/+11
2020-08-10time: Delete repeated words in commentsRandy Dunlap1-1/+1
2020-08-06timekeeping/vsyscall: Provide vdso_update_begin/end()Thomas Gleixner1-1/+1
2020-07-29timekeeping: Use sequence counter with associated raw spinlockAhmed S. Darwish1-8/+11
2020-07-22sched: nohz: stop passing around unused "ticks" parameter.Paul Gortmaker1-1/+1
2020-06-11x86/mce: Address objtools noinstr complaintsThomas Gleixner1-1/+1
2020-03-30Merge tag 'timers-core-2020-03-30' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-2/+1
2020-03-21timekeeping: Split jiffies seqlockThomas Gleixner1-2/+4
2020-03-04timekeeping: Prevent 32bit truncation in scale64_check_overflow()Wen Yang1-2/+1
2019-08-23timekeeping/vsyscall: Prevent math overflow in BOOTTIME updateThomas Gleixner1-0/+5
2019-06-22timekeeping: Use proper ktime_add when adding nsecs in coarse offsetJason A. Donenfeld1-1/+1
2019-06-14timekeeping: Repair ktime_get_coarse*() granularityThomas Gleixner1-2/+3
2019-05-07Merge tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-1/+12
2019-04-15ntp: Audit NTP parameters adjustmentOndrej Mosnacek1-1/+6
2019-04-15timekeeping: Audit clock adjustmentsOndrej Mosnacek1-0/+6
2019-03-28timekeeping: Force upper bound for setting CLOCK_REALTIMEThomas Gleixner1-3/+3
2019-03-23timekeeping: Consistently use unsigned int for seqcount snapshotRasmus Villemoes1-9/+9
2019-02-07timex: use __kernel_timex internallyDeepa Dinamani1-2/+2
2018-12-28Merge tag 'y2038-for-4.21' of ssh://gitolite.kernel.org:/pub/scm/linux/kernel...Linus Torvalds1-10/+2
2018-12-18timekeeping: remove unused {read,update}_persistent_clockArnd Bergmann1-10/+2
2018-12-05timekeeping: Use proper seqcount initializerBart Van Assche1-1/+3
2018-11-23time: Add SPDX license identifiersThomas Gleixner1-0/+1
2018-11-23time: Remove useless filenames in top level commentsThomas Gleixner1-8/+2
2018-08-27y2038: make do_gettimeofday() and get_seconds() inlineArnd Bergmann1-24/+0
2018-08-13Merge branch 'x86-timers-for-linus' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-29/+33
2018-07-30timekeeping: Prevent false warning when persistent clock is not availablePavel Tatashin1-1/+1
2018-07-19time: Introduce one suspend clocksource to compensate the suspend timeBaolin Wang1-8/+14
2018-07-19time: Fix extra sleeptime injection when suspend failsMukesh Ojha1-7/+25
2018-07-19timekeeping/ntp: Constify some function argumentsOndrej Mosnacek1-14/+15
2018-07-20timekeeping: Default boot time offset to local_clock()Pavel Tatashin1-2/+5
2018-07-20timekeeping: Replace read_boot_clock64() with read_persistent_wall_and_boot_o...Pavel Tatashin1-29/+30
2018-07-12Merge branch 'fortglx/4.19/time' of https://git.linaro.org/people/john.stultz...Thomas Gleixner1-6/+30
2018-07-10timekeeping: Update multiplier when NTP frequency is set directlyMiroslav Lichvar1-6/+30
2018-06-19timekeeping: Use ktime_get_real_ts64() instead of getnstimeofday64()Arnd Bergmann1-1/+1
2018-05-19timekeeping: Add ktime_get_coarse_with_offsetArnd Bergmann1-0/+19
2018-05-19timekeeping: Standardize on ktime_get_*() namingArnd Bergmann1-14/+9
2018-05-19timekeeping: Clean up ktime_get_real_ts64Arnd Bergmann1-25/+6
2018-04-26Revert: Unify CLOCK_MONOTONIC and CLOCK_BOOTTIMEThomas Gleixner1-41/+37
2018-04-17timekeeping: Remove __current_kernel_time()Baolin Wang1-7/+0
2018-03-13hrtimer: Unify MONOTONIC and BOOTTIME clock behaviorThomas Gleixner1-3/+1
2018-03-13timekeeping: Remove boot time specific codeThomas Gleixner1-31/+0
2018-03-13timekeeping: Make the MONOTONIC clock behave like the BOOTTIME clockThomas Gleixner1-3/+4
2018-03-13timekeeping: Add the new CLOCK_MONOTONIC_ACTIVE clockThomas Gleixner1-0/+36
2018-03-10timekeeping/ntp: Determine the multiplier directly from NTP tick lengthMiroslav Lichvar1-91/+47
2018-03-10timekeeping/ntp: Don't align NTP frequency adjustments to ticksMiroslav Lichvar1-3/+0
2017-11-14timekeeping: Remove CONFIG_GENERIC_TIME_VSYSCALL_OLDMiroslav Lichvar1-45/+0
2017-11-12pstore: Use ktime_get_real_fast_ns() instead of __getnstimeofday()Arnd Bergmann1-0/+1
2017-10-31Merge branch 'fortglx/4.15/time' of https://git.linaro.org/people/john.stultz...Thomas Gleixner1-12/+109
2017-10-30timekeeping: Use timespec64 in timekeeping_inject_offsetArnd Bergmann1-47/+25
2017-10-30timekeeping: Consolidate timekeeping_inject_offset codeArnd Bergmann1-2/+121
2017-09-25timekeeping: Provide NMI safe access to clock realtimeThomas Gleixner1-0/+35
2017-09-25timekeeping: Make fast accessors return 0 before timekeeping is initializedPrarit Bhargava1-14/+21
2017-09-08drivers/pps: aesthetic tweaks to PPS-related contentRobert P. J. Day1-1/+1
2017-09-04Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-1/+1
2017-08-26time: Fix ktime_get_raw() incorrect base accumulationJohn Stultz1-3/+1
2017-08-17timekeeping: Use proper timekeeper for debug codeStafford Horne1-1/+1
2017-06-20time: Add warning about imminent deprecation of CONFIG_GENERIC_TIME_VSYSCALL_OLDJohn Stultz1-0/+1
2017-06-20time: Clean up CLOCK_MONOTONIC_RAW time handlingJohn Stultz1-20/+25
2017-06-20time: Fix CLOCK_MONOTONIC_RAW sub-nanosecond accountingJohn Stultz1-9/+10
2017-06-20time: Fix clock->read(clock) race around clocksource changesJohn Stultz1-16/+36
2017-03-31timekeeping: Remove pointless conversion to boolNicholas Mc Guire1-2/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-01-06timekeeping: Remove unused timekeeping_{get,set}_tai_offset()Stephen Boyd1-38/+1
2016-12-25ktime: Get rid of the unionThomas Gleixner1-3/+3
2016-12-25clocksource: Use a plain u64 instead of cycle_tThomas Gleixner1-30/+27
2016-12-09timekeeping: Use mul_u64_u32_shr() instead of open coding itThomas Gleixner1-21/+5
2016-12-09timekeeping: Get rid of pointless typecastsThomas Gleixner1-3/+2
2016-12-09timekeeping: Make the conversion call chain consistently unsignedThomas Gleixner1-13/+13
2016-12-09timekeeping_Force_unsigned_clocksource_to_nanoseconds_conversionThomas Gleixner1-2/+2
2016-11-29timekeeping: Add a fast and NMI safe boot clockJoel Fernandes1-0/+29
2016-10-05timekeeping: Fix __ktime_get_fast_ns() regressionJohn Stultz1-2/+5
2016-08-24timekeeping: Avoid taking lock in NMI path with CONFIG_DEBUG_TIMEKEEPINGJohn Stultz1-1/+4
2016-07-25Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-4/+6
2016-06-30timekeeping: export get_monotonic_coarse64 symbolGregor Boirie1-0/+1
2016-06-20timekeeping: Fix 1ns/tick drift with GENERIC_TIME_VSYSCALL_OLDThomas Graziadei1-4/+6
2016-03-17Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik...Linus Torvalds1-1/+1
2016-03-08time/timekeeping: Work around false positive GCC warningIngo Molnar1-1/+1
2016-03-02time: Add history to cross timestamp interface supporting slower devicesChristopher S. Hall1-1/+170
2016-03-02time: Add driver cross timestamp interface for higher precision time synchron...Christopher S. Hall1-0/+56
2016-03-02time: Remove duplicated code in ktime_get_raw_and_real()Christopher S. Hall1-38/+2
2016-03-02time: Add timekeeping snapshot code capturing system time and counterChristopher S. Hall1-0/+30
2016-03-02time: Add cycles to nanoseconds translationChristopher S. Hall1-4/+21
2016-02-15treewide: Fix typo in printkMasanari Iida1-1/+1
2015-12-16timekeeping: Cap adjustments so they don't exceed the maxadj valueJohn Stultz1-4/+27
2015-12-16timekeeping: Provide internal function __ktime_get_real_secondsDengChao1-0/+13
2015-12-10time: Verify time values in adjtimex ADJ_SETOFFSET to avoid overflowJohn Stultz1-1/+1
2015-12-07time: Avoid signed overflow in timekeeping_get_ns()David Gibson1-2/+1
2015-11-09remove abs64()Andrew Morton1-1/+1
2015-11-03Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-9/+9
2015-10-20Merge branch 'fortglx/4.4/time' of https://git.linaro.org/people/john.stultz/...Thomas Gleixner1-7/+7
2015-10-16timekeeping: Increment clock_was_set_seq in timekeeping_init()Thomas Gleixner1-1/+1
2015-10-01ntp/pps: replace getnstime_raw_and_real with 64-bit versionArnd Bergmann1-6/+6
2015-10-01ntp/pps: use timespec64 for hardpps()Arnd Bergmann1-1/+1
2015-09-22time: Fix spelling in commentsZhen Lei1-2/+2
2015-09-13time: Fix timekeeping_freqadjust()'s incorrect use of abs() instead of abs64()John Stultz1-1/+1
2015-08-17time: Introduce current_kernel_time64()Baolin Wang1-3/+3
2015-08-17time: Always make sure wall_to_monotonic isn't positiveWang YanQing1-3/+10
2015-07-01Merge tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-27/+2
2015-06-18timekeeping: Copy the shadow-timekeeper over the real timekeeper lastJohn Stultz1-1/+2
2015-06-12time: Prevent early expiry of hrtimers[CLOCK_REALTIME] at the leap second edgeJohn Stultz1-1/+22
2015-06-12time: Move clock_was_set_seq update before updating shadow-timekeeperJohn Stultz1-4/+8
2015-05-28seqlock: Introduce raw_read_seqcount_latch()Peter Zijlstra1-1/+1
2015-05-28seqlock: Better document raw_write_seqcount_latch()Peter Zijlstra1-26/+1
2015-05-22time: Remove read_boot_clock()Xunlei Pang1-11/+3
2015-05-22time: Rework debugging variables so they aren't globalJohn Stultz1-22/+11
2015-05-22timekeeping: Provide new API to get the current time resolutionHarald Geyer1-0/+17
2015-04-22hrtimer: Make offset update smarterThomas Gleixner1-7/+16
2015-04-22hrtimer: Get rid of softirq timeThomas Gleixner1-32/+0
2015-04-03timekeeping: Get rid of stale commentThomas Gleixner1-4/+0
2015-04-03time, drivers/rtc: Don't bother with rtc_resume() for the nonstop clocksourceXunlei Pang1-17/+49
2015-04-03time: Fix a bug in timekeeping_suspend() with no persistent clockXunlei Pang1-17/+19
2015-04-03time: Don't build timekeeping_inject_sleeptime64() if no one uses itXunlei Pang1-0/+2
2015-04-03time: Add y2038 safe read_persistent_clock64()Xunlei Pang1-10/+12
2015-04-03time: Add y2038 safe read_boot_clock64()Xunlei Pang1-2/+9
2015-04-01clockevents: Make suspend/resume calls explicitThomas Gleixner1-4/+2
2015-03-27time: Introduce tk_fast_rawPeter Zijlstra1-0/+13
2015-03-27time: Parametrize all tk_fast_mono usersPeter Zijlstra1-10/+15
2015-03-27time: Add timerkeeper::tkr_rawPeter Zijlstra1-22/+19
2015-03-27time: Rename timekeeper::tkr to timekeeper::tkr_monoPeter Zijlstra1-75/+75
2015-03-13timekeeping: Add warnings when overflows or underflows are observedJohn Stultz1-7/+57
2015-03-13timekeeping: Try to catch clocksource delta underflowsJohn Stultz1-0/+7
2015-03-13timekeeping: Add checks to cap clocksource reads to the 'max_cycles' valueJohn Stultz1-14/+35
2015-03-13timekeeping: Add debugging checks to warn if we see delaysJohn Stultz1-0/+28
2015-02-15PM / sleep: Make it possible to quiesce timers during suspend-to-idleRafael J. Wysocki1-2/+2
2015-02-15timekeeping: Make it safe to use the fast timekeeper while suspendedRafael J. Wysocki1-0/+30
2015-02-13timekeeping: Pass readout base to update_fast_timekeeper()Rafael J. Wysocki1-8/+6
2015-01-23time: Expose getboottime64 for in-kernel usesJohn Stultz1-6/+6
2014-12-10Merge branch 'timers-2038-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-5/+63
2014-11-25time: Fix sign bug in NTP mult overflow warningJohn Stultz1-1/+1
2014-11-21time: Fixup comments to reflect usage of timespec64John Stultz1-3/+3
2014-11-21time: Expose get_monotonic_coarse64() for in-kernel usesJohn Stultz1-2/+2
2014-11-21time: Expose getrawmonotonic64 for in-kernel usesJohn Stultz1-5/+6
2014-11-21time: Provide y2038 safe timekeeping_inject_sleeptime() replacementpang.xunlei1-6/+4
2014-11-21time: Provide y2038 safe do_settimeofday() replacementpang.xunlei1-10/+9
2014-11-21time: Complete NTP adjustment threshold judging conditionspang.xunlei1-1/+2
2014-11-21time: Avoid possible NTP adjustment mult overflow.pang.xunlei1-0/+6
2014-10-29timekeeping: Provide y2038 safe accessor to the seconds portion of CLOCK_REAL...Heena Sirwani1-0/+30
2014-10-29timekeeping: Provide fast accessor to the seconds part of CLOCK_MONOTONICHeena Sirwani1-5/+33
2014-09-06timekeeping: Update timekeeper before updating vsyscall and pvclockThomas Gleixner1-2/+3
2014-08-14timekeeping: Another fix to the VSYSCALL_OLD update_vsyscallJohn Stultz1-2/+3
2014-07-23timekeeping: Use cached ntp_tick_length when accumulating errorJohn Stultz1-1/+4
2014-07-23timekeeping: Rework frequency adjustments to work better w/ nohzJohn Stultz1-110/+83
2014-07-23timekeeping: Minor fixup for timespec64->timespec assignmentJohn Stultz1-1/+1
2014-07-23timekeeping: Provide fast and NMI safe access to CLOCK_MONOTONICThomas Gleixner1-0/+124
2014-07-23timekeeping: Use tk_read_base as argument for timekeeping_get_ns()Thomas Gleixner1-11/+11
2014-07-23timekeeping: Create struct tk_read_base and use it in struct timekeeperThomas Gleixner1-66/+66
2014-07-23timekeeping: Restructure the timekeeper some moreThomas Gleixner1-20/+15
2014-07-23clocksource: Get rid of cycle_lastThomas Gleixner1-12/+11
2014-07-23clocksource: Make delta calculation a functionThomas Gleixner1-12/+14
2014-07-23timekeeping: Provide ktime_get_raw()Thomas Gleixner1-0/+25
2014-07-23timekeeping: Simplify timekeeping_clocktai()Thomas Gleixner1-31/+0
2014-07-23timekeeping: Remove timekeeper.total_sleep_timeThomas Gleixner1-11/+3
2014-07-23timekeeping: Simplify getboottime()Thomas Gleixner1-8/+3
2014-07-23timekeeping: Use ktime_get_boottime() for get_monotonic_boottime()Thomas Gleixner1-34/+0
2014-07-23timekeeping: Remove monotonic_to_bootbasedThomas Gleixner1-15/+0
2014-07-23timekeeping: Remove ktime_get_monotonic_offset()Thomas Gleixner1-18/+0
2014-07-23timekeeping: Provide ktime_mono_to_any()Thomas Gleixner1-0/+20
2014-07-23timekeeping; Use ktime based data for ktime_get_update_offsets_tick()Thomas Gleixner1-6/+6
2014-07-23timekeeping: Use ktime_t data for ktime_get_update_offsets_now()Thomas Gleixner1-6/+4
2014-07-23timekeeping: Use ktime_t based data for ktime_get_clocktai()Thomas Gleixner1-15/+0