Skip to content
Snippets Groups Projects
Select Git revision
  • ff4a44199012ee32839278cb84f82ae32c01dbc9
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

hyperv_net.h

Blame
  • timer.c 46.07 KiB
    /*
     *  linux/kernel/timer.c
     *
     *  Kernel internal timers, basic process system calls
     *
     *  Copyright (C) 1991, 1992  Linus Torvalds
     *
     *  1997-01-28  Modified by Finn Arne Gangstad to make timers scale better.
     *
     *  1997-09-10  Updated NTP code according to technical memorandum Jan '96
     *              "A Kernel Model for Precision Timekeeping" by Dave Mills
     *  1998-12-24  Fixed a xtime SMP race (we need the xtime_lock rw spinlock to
     *              serialize accesses to xtime/lost_ticks).
     *                              Copyright (C) 1998  Andrea Arcangeli
     *  1999-03-10  Improved NTP compatibility by Ulrich Windl
     *  2002-05-31	Move sys_sysinfo here and make its locking sane, Robert Love
     *  2000-10-05  Implemented scalable SMP per-CPU timer handling.
     *                              Copyright (C) 2000, 2001, 2002  Ingo Molnar
     *              Designed by David S. Miller, Alexey Kuznetsov and Ingo Molnar
     */
    
    #include <linux/kernel_stat.h>
    #include <linux/module.h>
    #include <linux/interrupt.h>
    #include <linux/percpu.h>
    #include <linux/init.h>
    #include <linux/mm.h>
    #include <linux/swap.h>
    #include <linux/pid_namespace.h>
    #include <linux/notifier.h>
    #include <linux/thread_info.h>
    #include <linux/time.h>
    #include <linux/jiffies.h>
    #include <linux/posix-timers.h>
    #include <linux/cpu.h>
    #include <linux/syscalls.h>
    #include <linux/delay.h>
    #include <linux/tick.h>
    #include <linux/kallsyms.h>
    #include <linux/perf_event.h>
    #include <linux/sched.h>
    
    #include <asm/uaccess.h>
    #include <asm/unistd.h>
    #include <asm/div64.h>
    #include <asm/timex.h>
    #include <asm/io.h>
    
    #define CREATE_TRACE_POINTS
    #include <trace/events/timer.h>
    
    u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
    
    EXPORT_SYMBOL(jiffies_64);
    
    /*
     * per-CPU timer vector definitions:
     */
    #define TVN_BITS (CONFIG_BASE_SMALL ? 4 : 6)
    #define TVR_BITS (CONFIG_BASE_SMALL ? 6 : 8)
    #define TVN_SIZE (1 << TVN_BITS)
    #define TVR_SIZE (1 << TVR_BITS)
    #define TVN_MASK (TVN_SIZE - 1)
    #define TVR_MASK (TVR_SIZE - 1)
    
    struct tvec {
    	struct list_head vec[TVN_SIZE];
    };
    
    struct tvec_root {