Re: [PATCH 1/4] ptp/chardev:Introduce another option to get/set time in ptp_clock_info structure

2015-03-19 Thread Richard Cochran
On Thu, Mar 19, 2015 at 01:45:06PM +0800, Baolin Wang wrote: > diff --git a/include/linux/ptp_clock_kernel.h > b/include/linux/ptp_clock_kernel.h > index 0d8ff3f..86decc2 100644 > --- a/include/linux/ptp_clock_kernel.h > +++ b/include/linux/ptp_clock_kernel.h > @@ -105,7 +105,9 @@ struct

Re: [PATCH 1/4] ptp/chardev:Introduce another option to get/set time in ptp_clock_info structure

2015-03-19 Thread Richard Cochran
On Thu, Mar 19, 2015 at 01:45:06PM +0800, Baolin Wang wrote: diff --git a/include/linux/ptp_clock_kernel.h b/include/linux/ptp_clock_kernel.h index 0d8ff3f..86decc2 100644 --- a/include/linux/ptp_clock_kernel.h +++ b/include/linux/ptp_clock_kernel.h @@ -105,7 +105,9 @@ struct

[PATCH 1/4] ptp/chardev:Introduce another option to get/set time in ptp_clock_info structure

2015-03-18 Thread Baolin Wang
This patch introduces two options with "ktime_t" type to get/set time in ptp_clock_info structure that will avoid breaking in the year 2038. In ptp_chardev.c file, replace the gettime interface with getktime interface using the "ktime_t" type to get the ptp clock time. The patch's goal is to

[PATCH 1/4] ptp/chardev:Introduce another option to get/set time in ptp_clock_info structure

2015-03-18 Thread Baolin Wang
This patch introduces two options with ktime_t type to get/set time in ptp_clock_info structure that will avoid breaking in the year 2038. In ptp_chardev.c file, replace the gettime interface with getktime interface using the ktime_t type to get the ptp clock time. The patch's goal is to remove