1. 15 Nov, 2019 1 commit
  2. 24 May, 2019 1 commit
  3. 21 May, 2019 1 commit
  4. 04 Jan, 2018 1 commit
  5. 20 Sep, 2016 1 commit
  6. 03 Mar, 2016 1 commit
    • Christopher S. Hall's avatar
      ptp: Add PTP_SYS_OFFSET_PRECISE for driver crosstimestamping · 719f1aa4
      Christopher S. Hall authored
      
      
      Currently, network /system cross-timestamping is performed in the
      PTP_SYS_OFFSET ioctl. The PTP clock driver reads gettimeofday() and
      the gettime64() callback provided by the driver. The cross-timestamp
      is best effort where the latency between the capture of system time
      (getnstimeofday()) and the device time (driver callback) may be
      significant.
      
      The getcrosststamp() callback and corresponding PTP_SYS_OFFSET_PRECISE
      ioctl allows the driver to perform this device/system correlation when
      for example cross timestamp hardware is available. Modern Intel
      systems can do this for onboard Ethernet controllers using the ART
      counter. There is virtually zero latency between captures of the ART
      and network device clock.
      
      The capabilities ioctl (PTP_CLOCK_GETCAPS), is augmented allowing
      applications to query whether or not drivers implement the
      getcrosststamp callback, providing more precise cross timestamping.
      
      Cc: Prarit Bhargava <prarit@redhat.com>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: kevin.b.stanton@intel.com
      Cc: kevin.j.clarke@intel.com
      Cc: hpa@zytor.com
      Cc: jeffrey.t.kirsher@intel.com
      Cc: netdev@vger.kernel.org
      Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarChristopher S. Hall <christopher.s.hall@intel.com>
      [jstultz: Commit subject tweaks]
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      719f1aa4
  7. 17 Feb, 2016 1 commit
    • Mahesh Khanwalkar's avatar
      Documentation: Fix int/unsigned int comparison · f0cd147e
      Mahesh Khanwalkar authored
      
      
      Signed int - unsigned int comparison fixed in mpssd, prctl, ptp, and
      timers in Documentation. In places where 'int argc' and 'const char
      **argv' are not used, they are replaced with void
      
      Documentation/mic/mpssd/mpssd.c: Fixed comparison in sum_iovec_len and
      disp_iovec
      
      Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c: main signature
      changed to void, as parameters 'argc' and 'argv' are never used
      
      Documentation/prctl/disable-tsc-on-off-stress-test.c: main signature
      changed to void
      
      Documentation/prctl/disable-tsc-test.c: main signature changed to void
      
      Documentation/ptp/testptp.c: Sign comparison fix
      Documentation/timers/hpet_example.c: Sign comparision fix
      Signed-off-by: default avatarMahesh Khanwalkar <maheshkhanwalkar@gmail.com>
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      f0cd147e
  8. 30 Sep, 2015 1 commit
    • Thomas Huth's avatar
      testptp: Silence compiler warnings on ppc64 · 9ae6d493
      Thomas Huth authored
      
      
      When compiling Documentation/ptp/testptp.c the following compiler
      warnings are printed out:
      
      Documentation/ptp/testptp.c: In function ‘main’:
      Documentation/ptp/testptp.c:367:11: warning: format ‘%lld’ expects argument
          of type ‘long long int’, but argument 3 has type ‘__s64’ [-Wformat=]
                 event.t.sec, event.t.nsec);
                 ^
      Documentation/ptp/testptp.c:505:5: warning: format ‘%lld’ expects argument
          of type ‘long long int’, but argument 2 has type ‘__s64’ [-Wformat=]
           (pct+2*i)->sec, (pct+2*i)->nsec);
           ^
      Documentation/ptp/testptp.c:507:5: warning: format ‘%lld’ expects argument
          of type ‘long long int’, but argument 2 has type ‘__s64’ [-Wformat=]
           (pct+2*i+1)->sec, (pct+2*i+1)->nsec);
           ^
      Documentation/ptp/testptp.c:509:5: warning: format ‘%lld’ expects argument
          of type ‘long long int’, but argument 2 has type ‘__s64’ [-Wformat=]
           (pct+2*i+2)->sec, (pct+2*i+2)->nsec);
      
      This happens because __s64 is by default defined as "long" on ppc64,
      not as "long long". However, to fix these warnings, it's possible to
      define the __SANE_USERSPACE_TYPES__ so that __s64 gets defined to
      "long long" on ppc64, too.
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9ae6d493
  9. 26 Sep, 2014 1 commit
  10. 17 Jun, 2014 1 commit
  11. 27 Mar, 2014 2 commits
  12. 26 Mar, 2014 2 commits
  13. 21 Mar, 2014 1 commit
  14. 05 Feb, 2014 1 commit
  15. 23 Sep, 2013 1 commit
  16. 23 May, 2011 1 commit