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
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
.
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
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
-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
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
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
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
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
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
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
.
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
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
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
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
/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
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
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
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
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
/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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
.
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
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
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
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
/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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
()/
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
.
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
/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
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
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
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
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
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
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
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
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
, 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
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
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
/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
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
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
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
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
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 - 100 of 3825 matches
Mail list logo