[PATCH 0/4] Introduce another options to set/get time with ktime_t type

2015-03-18 Thread Baolin Wang
the other drivers' timespec type with ktime_t type. Baolin Wang (4): ptp/chardev:Introduce another option to get/set time in ptp_clock_info structure ptp/clcok:Introduce the setktime/getktime interfaces with ktime_t type ptp/pch:Replace timespec with ktime_t in ptp_pch.c ptp

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

2015-03-18 Thread Baolin Wang
the original code using the timespec type, and I expect to be done with that in the following merge window. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/ptp/ptp_chardev.c| 27 ++- include/linux/ptp_clock_kernel.h |2 ++ 2 files changed, 20

[PATCH 4/4] ptp/ixp46x:Replace timespec with ktime_t in ptp_ixp46x.c

2015-03-18 Thread Baolin Wang
. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/ptp/ptp_ixp46x.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/ptp/ptp_ixp46x.c b/drivers/ptp/ptp_ixp46x.c index 604d340..102b673 100644 --- a/drivers/ptp/ptp_ixp46x.c +++ b/drivers/ptp

[PATCH 2/4] ptp/clcok:Introduce the setktime/getktime interfaces with ktime_t type

2015-03-18 Thread Baolin Wang
with ktime_t type to use firstly. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/ptp/ptp_clock.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c index 296b0ec..46425ad 100644 --- a/drivers/ptp

[PATCH 3/4] ptp/pch:Replace timespec with ktime_t in ptp_pch.c

2015-03-18 Thread Baolin Wang
-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/ptp/ptp_pch.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c index 2554872..c759225 100644 --- a/drivers/ptp/ptp_pch.c +++ b/drivers/ptp/ptp_pch.c

[PATCH 02/11] timekeeping:Introduce the current_kernel_time64() function with timespec64 type

2015-04-20 Thread Baolin Wang
in timekeeping.h file. That is ready for 2038 when get the current time. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/timekeeping.h | 10 +- kernel/time/timekeeping.c |6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/include/linux/timekeeping.h

[PATCH 06/11] char/mmtimer:Convert to the 64bit methods for k_clock callback function

2015-04-20 Thread Baolin Wang
This patch converts to the 64bit methods for k_clock callback function, that converts the timespec type to timespec64 type and converts the itimerspec type to itimerspec64 type. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/char/mmtimer.c | 36

[PATCH 01/11] linux/time64.h:Introduce the 'struct itimerspec64' for 64bit

2015-04-20 Thread Baolin Wang
This patch introduces the 'struct itimerspec64' for 64bit to replace itimerspec, and also introduces the conversion methods: itimerspec64_to_itimerspec() and itimerspec_to_itimerspec64(), that makes itimerspec to ready for 2038 year. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include

[PATCH 07/11] time/alarmtimer:Convert to the new methods for k_clock structure

2015-04-20 Thread Baolin Wang
This patch changes to the new methods with timespec64/itimerspec64 type of k_clock structure, and converts the timespec/itimerspec type to timespec64/itimerspec64 typein alarmtimer.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/alarmtimer.c | 43

[PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-20 Thread Baolin Wang
for the framework functions. Next step will migrate all the k_clock users to use the new methods with timespec64 type nd itimerspec64 type, and it contains the files of posix-timers.c, mmtimer.c, alarmtimer.c, posix-clock.c and posix-cpu-timers.c. Signed-off-by: Baolin Wang baolin.w...@linaro.org

[PATCH 03/11] time/hrtimer:Introduce hrtimer_get_res64() with timespec64 type for getting the timer resolution

2015-04-20 Thread Baolin Wang
by hrtimer_get_res64() function with timespec64 type, and it is convenient to delete the old hrtimer_get_res() function in hrtimer.h file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/hrtimer.h | 12 +++- kernel/time/hrtimer.c | 10 +- 2 files changed

[PATCH 05/11] time/posix-timers:Convert to the 64bit methods for k_clock callback functions

2015-04-20 Thread Baolin Wang
. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/timekeeping.h |4 +- kernel/time/posix-timers.c | 102 +++ kernel/time/timekeeping.h |2 +- 3 files changed, 57 insertions(+), 51 deletions(-) diff --git a/include/linux

[PATCH 10/11] time/posix-cpu-timers:Convert to the 64bit methods for k_clock structure

2015-04-20 Thread Baolin Wang
This patch changes to the new methods of k_clock structure with timespec64 type, converts the timespec/itimerspec type to timespec64/itimerspec64 type for the callback function in posix-cpu-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-cpu-timers.c | 83

[PATCH 09/11] cputime:Introduce the cputime_to_timespec64/timespec64_to_cputime function

2015-04-20 Thread Baolin Wang
for 2038 issue. The cputime_to_timespec/timespec_to_cputime functions are moved to include/linux/cputime.h file for removing conveniently. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- arch/powerpc/include/asm/cputime.h|6 +++--- arch/s390/include/asm/cputime.h |8

[PATCH 11/11] k_clock:Remove the 32bit methods with timespec type

2015-04-20 Thread Baolin Wang
All of the k_clock users have been converted to the new methods. This patch removes the older methods with timepsec/itimerspec type. As a result, the k_clock structure is ready for the year 2038. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |9

[PATCH 08/11] time/posix-clock:Convert to the 64bit methods for k_clock and posix_clock_operations structure

2015-04-20 Thread Baolin Wang
/itimerspec64 type. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/ptp/ptp_clock.c | 26 -- include/linux/posix-clock.h | 10 +- kernel/time/posix-clock.c | 20 ++-- 3 files changed, 23 insertions(+), 33 deletions(-) diff

[PATCH 00/11] Convert the posix_clock_operations and k_clock structure to ready for 2038

2015-04-19 Thread Baolin Wang
type for posix_clock_operations and k_clock structure. Also introduces some new functions with timespec64/itimerspec64 type, like current_kernel_time64(), hrtimer_get_res64(), cputime_to_timespec64() and timespec64_to_cputime(). Baolin Wang (11): linux/time64.h:Introduce the 'struct itimerspec64

[PATCH v2 01/15] linux/time64.h:Introduce the 'struct itimerspec64' for 64bit

2015-04-30 Thread Baolin Wang
This patch introduces the 'struct itimerspec64' for 64bit to replace itimerspec, and also introduces the conversion methods: itimerspec64_to_itimerspec() and itimerspec_to_itimerspec64(), that makes itimerspec ready for 2038 year. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include

[PATCH v2 00/15] Convert the posix_clock_operations and k_clock structure to ready for 2038

2015-04-30 Thread Baolin Wang
methods in cputime_nsecs.h file. -Modify some patch logs. Baolin Wang (15): linux/time64.h:Introduce the 'struct itimerspec64' for 64bit timekeeping:Introduce the current_kernel_time64() function with timespec64 type time/hrtimer:Introduce hrtimer_get_res64() with timespec64 type

[PATCH v2 02/15] timekeeping:Introduce the current_kernel_time64() function with timespec64 type

2015-04-30 Thread Baolin Wang
in timekeeping.h file. That is ready for 2038 when get the current time. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/timekeeping.h | 10 +- kernel/time/timekeeping.c |6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/include/linux/timekeeping.h

[PATCH v2 11/15] time/posix-clock:Convert to the 64bit methods for k_clock and posix_clock_operations structure

2015-04-30 Thread Baolin Wang
/itimerspec64 type. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/ptp/ptp_clock.c | 26 -- include/linux/posix-clock.h | 10 +- kernel/time/posix-clock.c | 20 ++-- 3 files changed, 23 insertions(+), 33 deletions(-) diff

[PATCH v2 07/15] time:Introduce the do_sys_settimeofday64() function with timespec64 type

2015-04-30 Thread Baolin Wang
This patch introduces the do_sys_settimeofday64() function with timespec64 type, that makes this function ready for 2038 issue when setting the time of day. And moves the do_sys_settimeofday() function to the timekeeping.h file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include

[PATCH v2 08/15] time/posix-timers:Convert to the 64bit methods for k_clock callback functions

2015-04-30 Thread Baolin Wang
. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/timekeeping.h |4 +- kernel/time/posix-timers.c | 96 +-- kernel/time/timekeeping.h |2 +- 3 files changed, 51 insertions(+), 51 deletions(-) diff --git a/include/linux

[PATCH v2 04/15] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-30 Thread Baolin Wang
This patch introduces the new methods with timespec64/itimerspec64 type for k_clcok structure,converts the timepsec type to timespec64 type in k_clock structure and converts the itimerspec type to itimerspec64 type to ready for 2038 issue. Signed-off-by: Baolin Wang baolin.w...@linaro.org

[PATCH v2 06/15] posix-timers:Convert to the 64bit methods for the syscall function

2015-04-30 Thread Baolin Wang
This patch converts to the 64bit methods with timespec64/itimerspec64 type for the syscall function, and changes the syscall implementation according to the CONFIG_64BIT macro. Also introduces some default functions with timespec64/itimerspec64 type for the 64bit methods. Signed-off-by: Baolin

[PATCH v2 05/15] posix-timers:Split out the guts of the syscall and change the implementation

2015-04-30 Thread Baolin Wang
This patch splits out the guts of the syscall and changes the syscall implementation to prepare the converting to 64bit methods for the syscall function in posix-timers.c file. And next patch will convert the syscall to 64bit methods with timespec64/itimerspec64 type. Signed-off-by: Baolin Wang

[PATCH v2 12/15] time/time:Introduce the timespec64_to_jiffies/jiffies_to_timespec64 function

2015-04-30 Thread Baolin Wang
This patch introduces the timespec64_to_jiffies() and jiffies_to_timespec64() functions, that implement the conversion between cputime and timespec64. And remove the old functions timespec64_to_jiffies()/jiffies_to_timespec64() to jiffies.h file. Signed-off-by: Baolin Wang baolin.w...@linaro.org

[PATCH v2 13/15] cputime:Introduce the cputime_to_timespec64/timespec64_to_cputime function

2015-04-30 Thread Baolin Wang
for 2038 issue. The cputime_to_timespec/timespec_to_cputime functions are moved to include/linux/cputime.h file for removing conveniently. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- arch/powerpc/include/asm/cputime.h|6 +++--- arch/s390/include/asm/cputime.h |8

[PATCH v2 03/15] time/hrtimer:Introduce hrtimer_get_res64() with timespec64 type for getting the timer resolution

2015-04-30 Thread Baolin Wang
by hrtimer_get_res64() function with timespec64 type, and it is convenient to delete the old hrtimer_get_res() function in hrtimer.h file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/hrtimer.h | 12 +++- kernel/time/hrtimer.c | 10 +- 2 files changed

[PATCH v2 14/15] time/posix-cpu-timers:Convert to the 64bit methods for k_clock structure

2015-04-30 Thread Baolin Wang
This patch changes to the new methods of k_clock structure with timespec64 type, converts the timespec/itimerspec type to timespec64/itimerspec64 type for the callback function in posix-cpu-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-cpu-timers.c | 83

[PATCH v2 09/15] char/mmtimer:Convert to the 64bit methods for k_clock callback function

2015-04-30 Thread Baolin Wang
This patch converts to the 64bit methods for k_clock callback function, that converts the timespec type to timespec64 type and converts the itimerspec type to itimerspec64 type. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/char/mmtimer.c | 36

[PATCH v2 15/15] k_clock:Remove the 32bit methods with timespec/itimerspec type

2015-04-30 Thread Baolin Wang
All of the k_clock users have been converted to the new methods. This patch removes the older methods with timepsec/itimerspec type. As a result, the k_clock structure is ready for the year 2038. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |9

[PATCH v2 10/15] time/alarmtimer:Convert to the new methods for k_clock structure

2015-04-30 Thread Baolin Wang
This patch changes to the new methods with timespec64/itimerspec64 type of k_clock structure, and converts the timespec/itimerspec type to timespec64/itimerspec64 typein alarmtimer.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/alarmtimer.c | 43

[PATCH v3 01/22] linux/time64.h:Introduce the 'struct itimerspec64' for 64bit

2015-05-11 Thread Baolin Wang
This patch introduces the 'struct itimerspec64' for 64bit to replace itimerspec, and also introduces the conversion methods: itimerspec64_to_itimerspec() and itimerspec_to_itimerspec64(), that makes itimerspec ready for 2038 year. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include

[PATCH v3 00/22] Convert the posix_clock_operations and k_clock structure to ready for 2038

2015-05-11 Thread Baolin Wang
into small some patches. Baolin Wang (22): linux/time64.h:Introduce the 'struct itimerspec64' for 64bit timekeeping:Introduce the current_kernel_time64() function with timespec64 type time/hrtimer:Introduce hrtimer_get_res64() with timespec64 type for getting the timer resolution posix

[PATCH v3 05/22] posix-timers:Convert to the 64bit methods for the timer_gettime syscall function

2015-05-11 Thread Baolin Wang
Convert to the 64bit methods with timespec64/itimerspec64 type for the timer_gettime syscall function, and change the timer_gettime syscall implementation according to the CONFIG_64BIT macro. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |2 ++ kernel

[PATCH v3 06/22] posix-timers:Split out the guts of the syscall and change the implementation for timer_settime

2015-05-11 Thread Baolin Wang
This patch splits out the guts of the timer_settime syscall and changes the timer_settime syscall implementation to prepare the converting to 64bit methods for the timer_settime syscall function in posix-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix

[PATCH v3 04/22] posix-timers:Split out the guts of the syscall and change the implementation for timer_gettime

2015-05-11 Thread Baolin Wang
This patch splits out the guts of the timer_gettime syscall and changes the timer_gettime syscall implementation to prepare the converting to 64bit methods for the timer_gettime syscall function in posix-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix

[PATCH v3 00/22] Convert the posix_clock_operations and k_clock structure to ready for 2038

2015-05-11 Thread Baolin Wang
into small some patches. *** BLURB HERE *** Baolin Wang (22): linux/time64.h:Introduce the 'struct itimerspec64' for 64bit timekeeping:Introduce the current_kernel_time64() function with timespec64 type time/hrtimer:Introduce hrtimer_get_res64() with timespec64 type for getting the timer

[PATCH v3 02/22] timekeeping:Introduce the current_kernel_time64() function with timespec64 type

2015-05-11 Thread Baolin Wang
in timekeeping.h file. That is ready for 2038 when get the current time. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/timekeeping.h | 10 +- kernel/time/timekeeping.c |6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/include/linux/timekeeping.h

[PATCH v3 03/22] time/hrtimer:Introduce hrtimer_get_res64() with timespec64 type for getting the timer resolution

2015-05-11 Thread Baolin Wang
by hrtimer_get_res64() function with timespec64 type, and it is convenient to delete the old hrtimer_get_res() function in hrtimer.h file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/hrtimer.h | 12 +++- kernel/time/hrtimer.c | 10 +- 2 files changed

[PATCH v3 09/22] posix-timers:Convert to the 64bit methods for the clock_settime syscall function

2015-05-11 Thread Baolin Wang
This patch introduces the clock_set64 methods with timespec64 type for k_clock structure. Convert to the 64bit methods with timespec64 type for the clock_settime syscall function, and change the clock_settime syscall implementation according the the CONFIG_64BIT macro. Signed-off-by: Baolin Wang

[PATCH v3 17/22] time/alarmtimer:Convert to the new 64bit methods for k_clock structure

2015-05-11 Thread Baolin Wang
This patch changes to the new methods with timespec64/itimerspec64 type of k_clock structure, and converts the timespec/itimerspec type to timespec64/itimerspec64 typein alarmtimer.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/alarmtimer.c | 43

[PATCH v3 22/22] k_clock:Remove the 32bit methods with timespec/itimerspec type

2015-05-11 Thread Baolin Wang
All of the k_clock users have been converted to the new methods. This patch removes the older methods with timepsec/itimerspec type. As a result, the k_clock structure is ready for the year 2038. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |9

[PATCH v3 19/22] time/time:Introduce the timespec64_to_jiffies/jiffies_to_timespec64 function

2015-05-11 Thread Baolin Wang
This patch introduces the timespec64_to_jiffies() and jiffies_to_timespec64() functions, that implement the conversion between cputime and timespec64. And remove the old functions timespec64_to_jiffies()/jiffies_to_timespec64() to jiffies.h file. Signed-off-by: Baolin Wang baolin.w...@linaro.org

[PATCH v3 07/22] posix-timers:Convert to the 64bit methods for the timer_settime syscall function

2015-05-11 Thread Baolin Wang
. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |3 +++ kernel/time/posix-timers.c | 40 +++- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h index

[PATCH v3 08/22] posix-timers:Split out the guts of the syscall and change the implementation for clock_settime

2015-05-11 Thread Baolin Wang
This patch splits out the guts of the clock_settime syscall and changes the clock_settime syscall implementation to prepare the converting to 64bit methods for the clock_settime syscall function in posix-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix

[PATCH v3 10/22] posix-timers:Split out the guts of the syscall and change the implementation for clock_gettime

2015-05-11 Thread Baolin Wang
This patch splits out the guts of the clock_gettime syscall and changes the clock_gettime syscall implementation to prepare the converting to 64bit methods for the clock_gettime syscall function in posix-timers.c file Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix

[PATCH v3 11/22] posix-timers:Convert to the 64bit methods for the clock_gettime syscall function

2015-05-11 Thread Baolin Wang
This patch introduces the clock_get64 methods with timespec64 type for k_clock structure. Convert to the 64bit methods with timespec64 type for the clock_gettime syscall function, and change the clock_gettime syscall implementation according the the CONFIG_64BIT macro. Signed-off-by: Baolin Wang

[PATCH v3 13/22] posix-timers:Convert to the 64bit methods for the clock_getres syscall function

2015-05-11 Thread Baolin Wang
This patch introduces the clock_getres64 method with timespec64 type for k_clock structure. Convert to the 64bit method with timespec64 type for the clock_getres syscall function, and change the clock_getres syscall implementation according the the CONFIG_64BIT macro. Signed-off-by: Baolin Wang

[PATCH v3 16/22] char/mmtimer:Convert to the 64bit methods for k_clock callback function

2015-05-11 Thread Baolin Wang
This patch converts to the 64bit methods for k_clock callback function, that converts the timespec type to timespec64 type and converts the itimerspec type to itimerspec64 type. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/char/mmtimer.c | 36

[PATCH v3 20/22] cputime:Introduce the cputime_to_timespec64/timespec64_to_cputime function

2015-05-11 Thread Baolin Wang
for 2038 issue. The cputime_to_timespec/timespec_to_cputime functions are moved to include/linux/cputime.h file for removing conveniently. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- arch/powerpc/include/asm/cputime.h|6 +++--- arch/s390/include/asm/cputime.h |8

[PATCH v3 15/22] time/posix-timers:Convert to the 64bit methods for k_clock callback functions

2015-05-11 Thread Baolin Wang
. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/timekeeping.h |4 +- kernel/time/posix-timers.c | 96 +-- kernel/time/timekeeping.h |2 +- 3 files changed, 51 insertions(+), 51 deletions(-) diff --git a/include/linux

[PATCH v3 14/22] time:Introduce the do_sys_settimeofday64() function with timespec64 type

2015-05-11 Thread Baolin Wang
This patch introduces the do_sys_settimeofday64() function with timespec64 type, that makes this function ready for 2038 issue when setting the time of day. And moves the do_sys_settimeofday() function to the timekeeping.h file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include

[PATCH v3 21/22] time/posix-cpu-timers:Convert to the 64bit methods for k_clock structure

2015-05-11 Thread Baolin Wang
This patch changes to the new methods of k_clock structure with timespec64 type, converts the timespec/itimerspec type to timespec64/itimerspec64 type for the callback function in posix-cpu-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-cpu-timers.c | 83

[PATCH v3 12/22] posix-timers:Split out the guts of the syscall and change the implementation for clock_getres

2015-05-11 Thread Baolin Wang
This patch splits out the guts of the clock_getres syscall and changes the clock_getres syscall implementation to prepare the converting to 64bit methods for the clock_getres syscall function in posix-timers.c file Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-timers.c

[PATCH v3 18/22] time/posix-clock:Convert to the 64bit methods for k_clock and posix_clock_operations structure

2015-05-11 Thread Baolin Wang
/itimerspec64 type. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/ptp/ptp_clock.c | 26 -- include/linux/posix-clock.h | 10 +- kernel/time/posix-clock.c | 20 ++-- 3 files changed, 23 insertions(+), 33 deletions(-) diff

[PATCH v3 05/23] posix-timers:Convert to the 64bit methods for the timer_gettime syscall function

2015-05-12 Thread Baolin Wang
to the CONFIG_64BIT macro. Also add a default 64bit method for the timer_get64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |2 ++ kernel/time/posix-timers.c

[PATCH v3 14/23] posix-timers:Convert to the 64bit methods for the clock_getres syscall function

2015-05-12 Thread Baolin Wang
to the CONFIG_64BIT macro. Also add a default 64bit method for the clock_getres64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |1 + kernel/time/posix-timers.c

[PATCH v3 12/23] posix-timers:Convert to the 64bit methods for the clock_gettime syscall function

2015-05-12 Thread Baolin Wang
to the CONFIG_64BIT macro. Also add a default 64bit method for the clock_get64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |1 + kernel/time/posix-timers.c

[PATCH v3 06/23] posix-timers:Convert to the 64bit methods for the timer_gettime syscall function

2015-05-12 Thread Baolin Wang
to the CONFIG_64BIT macro. Also add a default 64bit method for the timer_get64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |2 ++ kernel/time/posix-timers.c

[PATCH v3 08/23] posix-timers:Convert to the 64bit methods for the timer_settime syscall function

2015-05-12 Thread Baolin Wang
to the CONFIG_64BIT macro. Also add a default 64bit method for the timer_set64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |3 +++ kernel/time/posix-timers.c

[PATCH v3 10/23] posix-timers:Convert to the 64bit methods for the clock_settime syscall function

2015-05-12 Thread Baolin Wang
to the CONFIG_64BIT macro. Also add a default 64bit method for the clock_set64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |2 ++ kernel/time/posix-timers.c

[PATCH v5 04/24] time: Introduce do_sys_settimeofday64()

2015-06-12 Thread Baolin Wang
in future, it should move the do_sys_settimeofday() function to the timekeeping.h file as a 'static inline' helper that just calls do_sys_settimeofday64(). Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/timekeeping.h | 11 +-- kernel/time/time.c |8

[PATCH v5 13/24] posix-timers: Implement y2038 safe clock_get64() callback

2015-06-12 Thread Baolin Wang
at registration time for all posix clocks which are not yet converted to clock_get64() and will be removed once this is completed. Use the new callback in __clock_gettime(). Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |1 + kernel/time/posix-timers.c

[PATCH v5 12/24] posix-timers: Factor out the guts of 'clock_gettime' for reusing

2015-06-12 Thread Baolin Wang
In order to reuse the very same logic for the year 2038 safe syscalls which we need to introduce for 32bit system, factor out the guts of the 'clock_gettime' syscall. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-timers.c | 16 +++- 1 file changed, 11

[PATCH v5 14/24] posix-timers: Factor out the guts of 'clcok_getres' for reusing

2015-06-12 Thread Baolin Wang
In order to reuse the very same logic for the year 2038 safe syscalls which we need to introduce for 32bit system, factor out the guts of the 'clock_getres' syscall. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-timers.c | 16 +++- 1 file changed, 11

[PATCH v5 15/24] posix-timers: Implement y2038 safe clock_getres64() callback

2015-06-12 Thread Baolin Wang
is installed at registration time for all posix clocks which are not yet converted to clock_getres64() and will be removed once this is completed. Use the new callback in __clock_getres(). Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |1 + kernel/time/posix

[PATCH v5 11/24] posix-timers: Implement y2038 safe clock_set64() callback

2015-06-12 Thread Baolin Wang
at registration time for all posix clocks which are not yet converted to clock_set64() and will be removed once this is completed. Use the new callback in __clock_settime(). Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |2 ++ kernel/time/posix-timers.c

[PATCH v5 21/24] time: Introduce timespec64_to_jiffies()/jiffies_to_timespec64()

2015-06-12 Thread Baolin Wang
The conversion between struct timespec and jiffies is not year 2038 safe on 32bit systems. Introduce timespec64_to_jiffies() and jiffies_to_timespec64() functions which use struct timespec64 to make it ready for 2038 issue. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux

[PATCH v5 19/24] alarmtimer: Convert to y2038 safe callbacks

2015-06-12 Thread Baolin Wang
The clock_getres()/clock_get()/clock_set()/timer_set()/timer_get() callbacks in struct k_clock are not year 2038 safe on 32bit systems, and it need convert to safe callbacks which use struct timespec64 or struct itimerspec64. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time

[PATCH v5 16/24] timekeeping: Change the implementation of timekeeping_clocktai()

2015-06-12 Thread Baolin Wang
The timekeeping_clocktai() function is not year 2038 safe on 32bit systems, change its implementation with using struct timespec64. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/timekeeping.h |4 ++-- kernel/time/posix-timers.c |4 ++-- 2 files changed, 4

[PATCH v5 02/24] timekeeping: Introduce current_kernel_time64()

2015-06-12 Thread Baolin Wang
The current_kernel_time() is not year 2038 safe on 32bit systems due to return timespec value. Introduce current_kernel_time64() function which returns timespec64 value, also as a helper function calling by current_kernel_time(). Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include

[PATCH v5 10/24] posix-timers: Factor out the guts of 'clock_settime' for reusing

2015-06-12 Thread Baolin Wang
In order to reuse the very same logic for the year 2038 safe syscalls which we need to introduce for 32bit system, factor out the guts of the 'clock_settime' syscall. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-timers.c | 14 ++ 1 file changed, 10

[PATCH v5 03/24] security: Introduce security_settime64()

2015-06-12 Thread Baolin Wang
by security_settime64(). The cap_settime() as a helper function is only called by security_settime64() and security_settime() functions, and it need change the argument with timespec64 type. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/lsm_hooks.h |5 +++-- include/linux/security.h

[PATCH v5 08/24] posix-timers: Factor out the guts of 'timer_settime' for reusing

2015-06-12 Thread Baolin Wang
In order to reuse the very same logic for the year 2038 safe syscalls which we need to introduce for 32bit system, factor out the guts of the 'timer_settime' syscall. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-timers.c | 41

[PATCH v5 09/24] posix-timers: Implement y2038 safe timer_set64() callback

2015-06-12 Thread Baolin Wang
at registration time for all posix clocks which are not yet converted to timer_set64() and will be removed once this is completed. Use the new callback in __timer_settime(). Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |3 +++ kernel/time/posix-timers.c

[PATCH v5 07/24] posix-timers: Implement y2038 safe timer_get64() callback

2015-06-12 Thread Baolin Wang
at registration time for all posix clocks which are not yet converted to timer_get64() and will be removed once this is completed. Use the new callback in __timer_gettime(). Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |2 ++ kernel/time/posix-timers.c

[PATCH v5 06/24] posix-timers: Factor out the guts of 'timer_gettime' for reusing

2015-06-12 Thread Baolin Wang
In order to reuse the very same logic for the year 2038 safe syscalls which we need to introduce for 32bit systems, factor out the guts of the 'timer_gettime' syscall. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-timers.c | 16 +++- 1 file changed, 11

[PATCH v5 05/24] posix-timers: Introduce {get,put}_timespec and {get,put}_itimerspec

2015-06-12 Thread Baolin Wang
bit), kernel itimerspec64 (64 bit) In order to handle all these conversions, and ensure that it can change over all callers at the same time with the structure type above, and introduce the get/put macros based on __put_user() and __get_user(). Signed-off-by: Baolin Wang baolin.w...@linaro.org

[PATCH v5 20/24] posix-clock: Convert to y2038 safe callbacks

2015-06-12 Thread Baolin Wang
()/ timer_settime() callbacks in struct posix_clock_operations are not year 2038 safe on 32bit systems, and it need convert to year 2038 safe callbacks which use struct timespec64 or struct itimerspec64. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/ptp/ptp_clock.c | 22

[PATCH v5 00/24] Convert the posix_clock_operations and k_clock structure to ready for 2038

2015-06-12 Thread Baolin Wang
. Changes since V1: - Split some patch into small patch. - Add some default function for new 64bit methods for syscall function. - Move do_sys_settimeofday() function to head file. - Modify the EXPORT_SYMPOL issue. - Add new 64bit methods in cputime_nsecs.h file. --- Baolin Wang (24): time: Introduce

[PATCH v5 22/24] cputime: Introduce cputime_to_timespec64()/timespec64_to_cputime()

2015-06-12 Thread Baolin Wang
/powerpc architecture. The cputime_to_timespec() and timespec_to_cputime() functions are moved to include/linux/cputime.h file as 'static inline' for removing conveniently in future. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- arch/powerpc/include/asm/cputime.h|6 +++--- arch/s390

[PATCH v5 01/24] time: Introduce struct itimerspec64

2015-06-12 Thread Baolin Wang
The itimerspec is not year 2038 safe on 32bit systems due to the limitation of the struct timespec members. Introduce itimerspec64 which uses struct timespec64 instead and provide conversion functions. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/time64.h | 35

[PATCH v5 23/24] posix-cpu-timers: Convert to y2038 safe callbacks

2015-06-12 Thread Baolin Wang
The clock_getres()/clock_get()/clock_set()/timer_set()/timer_get() callbacks in struct k_clock are not year 2038 safe on 32bit systems, and it need convert to safe callbacks which use struct timespec64 or struct itimerspec64. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time

[PATCH v5 24/24] k_clock: Remove y2038 unsafe callbacks

2015-06-12 Thread Baolin Wang
All of the k_clock users have been converted to the y2038 safe methods, this patch removes the older methods with timepsec/itimerspec type, as a result the k_clock structure is ready for the year 2038. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |9

[PATCH v5 18/24] mmtimer: Convert to y2038 safe callbacks

2015-06-12 Thread Baolin Wang
The clock_getres()/clock_get()/clock_set()/timer_set()/timer_get() callbacks in struct k_clock are not year 2038 safe on 32bit systems, and it need convert to safe callbacks which use struct timespec64 or struct itimerspec64. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- drivers/char

[PATCH v5 17/24] posix-timers: Convert to y2038 safe callbacks

2015-06-12 Thread Baolin Wang
The clock_getres()/clock_get()/clock_set()/timer_set()/timer_get() callbacks in struct k_clock are not year 2038 safe on 32bit systems, and it need convert to safe callbacks which use struct timespec64 or struct itimerspec64. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time

Re: [PATCH v5 00/24] Convert the posix_clock_operations and k_clock structure to ready for 2038

2015-06-14 Thread Baolin Wang
On 12 June 2015 at 21:16, Thomas Gleixner t...@linutronix.de wrote: On Fri, 12 Jun 2015, Baolin Wang wrote: Sigh. Again threading of the series failed. Some patches are, the whole series is not. Can you please get your tools straight? You neither managed to cc me on the security patch

[PATCH v4 08/25] posix-timers:Convert to the 64bit methods for the timer_gettime syscall function

2015-06-01 Thread Baolin Wang
64bit method for the timer_get64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |2 ++ kernel/time/posix-timers.c | 25 - 2

[PATCH v4 10/25] posix-timers:Convert to the 64bit methods for the timer_settime syscall function

2015-06-01 Thread Baolin Wang
64bit method for the timer_set64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |3 +++ kernel/time/posix-timers.c | 39

[PATCH v4 22/25] time/time:Introduce the timespec64_to_jiffies()/jiffies_to_timespec64() function

2015-06-01 Thread Baolin Wang
, for it is convenient to delete them later. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/jiffies.h | 21 ++--- kernel/time/time.c | 12 ++-- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/include/linux/jiffies.h b/include/linux

[PATCH v4 03/25] time/hrtimer:Introduce hrtimer_get_res64() with timespec64 type

2015-06-01 Thread Baolin Wang
by hrtimer_get_res64() function with timespec64 type, and it is convenient to remove the old hrtimer_get_res() function in hrtimer.h file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/hrtimer.h | 16 +++- kernel/time/hrtimer.c | 10 +- 2 files changed

[PATCH v4 15/25] posix-timers:Change the implementation for clock_getres syscall function

2015-06-01 Thread Baolin Wang
This patch splits out the guts of the clock_getres syscall and changes the clock_getres syscall implementation to prepare the converting to 64bit methods for the clock_getres syscall function in posix-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix-timers.c

[PATCH v4 17/25] timekeeping:Introduce the timekeeping_clocktai() function with timespec64 type

2015-06-01 Thread Baolin Wang
/itimerspec to the timespec64/itimerspec64 type for other callbacks of the k_clock structure in the kernel/time/posix-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/timekeeping.h |4 ++-- kernel/time/posix-timers.c |4 ++-- kernel/time/timekeeping.h

[PATCH v4 11/25] posix-timers:Change the implementation for clock_settime syscall function

2015-06-01 Thread Baolin Wang
This patch splits out the guts of the clock_settime syscall and changes the clock_settime syscall implementation to prepare the converting to 64bit methods for the clock_settime syscall function in posix-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix

[PATCH v4 12/25] posix-timers:Convert to the 64bit methods for the clock_settime syscall function

2015-06-01 Thread Baolin Wang
method for the clock_set64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |2 ++ kernel/time/posix-timers.c | 24 +++- 2 files

[PATCH v4 13/25] posix-timers:Change the implementation for clock_gettime syscall function

2015-06-01 Thread Baolin Wang
This patch splits out the guts of the clock_gettime syscall and changes the clock_gettime syscall implementation to prepare the converting to 64bit methods for the clock_gettime syscall function in posix-timers.c file. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- kernel/time/posix

[PATCH v4 14/25] posix-timers:Convert to the 64bit methods for the clock_gettime syscall function

2015-06-01 Thread Baolin Wang
method for the clock_get64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |1 + kernel/time/posix-timers.c | 28 ++-- 2

[PATCH v4 16/25] posix-timers:Convert to the 64bit methods for the clock_getres syscall function

2015-06-01 Thread Baolin Wang
method for the clock_getres64 pointer of k_clock structure, and it will be removed after all the drivers are converted to 64bit methods. Signed-off-by: Baolin Wang baolin.w...@linaro.org --- include/linux/posix-timers.h |1 + kernel/time/posix-timers.c | 31

  1   2   3   4   5   6   7   8   9   10   >