]> git.baikalelectronics.ru Git - kernel.git/commit
ktime: Get rid of the union
authorThomas Gleixner <tglx@linutronix.de>
Sun, 25 Dec 2016 10:38:40 +0000 (11:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 Dec 2016 16:21:22 +0000 (17:21 +0100)
commita2f5814e12e82ebaa3c0b30774ff1d78f8e78e49
tree6fc81500645174c246c3fdb568cba32aa01960c6
parent645cc1cb1e07d0d936cf277c88f2d325953a6e38
ktime: Get rid of the union

ktime is a union because the initial implementation stored the time in
scalar nanoseconds on 64 bit machine and in a endianess optimized timespec
variant for 32bit machines. The Y2038 cleanup removed the timespec variant
and switched everything to scalar nanoseconds. The union remained, but
become completely pointless.

Get rid of the union and just keep ktime_t as simple typedef of type s64.

The conversion was done with coccinelle and some manual mopping up.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
48 files changed:
drivers/base/power/wakeup.c
drivers/media/rc/ir-rx51.c
drivers/rtc/interface.c
drivers/usb/chipidea/otg_fsm.c
drivers/usb/host/ehci-timer.c
drivers/usb/host/fotg210-hcd.c
fs/aio.c
fs/nfs/flexfilelayout/flexfilelayout.c
fs/ocfs2/cluster/heartbeat.c
fs/timerfd.c
include/linux/futex.h
include/linux/hrtimer.h
include/linux/ktime.h
include/linux/tick.h
include/linux/wait.h
include/net/red.h
include/net/sock.h
include/trace/events/alarmtimer.h
include/trace/events/timer.h
kernel/futex.c
kernel/signal.c
kernel/time/alarmtimer.c
kernel/time/clockevents.c
kernel/time/hrtimer.c
kernel/time/itimer.c
kernel/time/ntp.c
kernel/time/posix-timers.c
kernel/time/tick-broadcast-hrtimer.c
kernel/time/tick-broadcast.c
kernel/time/tick-oneshot.c
kernel/time/tick-sched.c
kernel/time/timekeeping.c
lib/timerqueue.c
net/can/bcm.c
net/can/gw.c
net/core/dev.c
net/core/skbuff.c
net/ipv4/tcp_output.c
net/ipv6/exthdrs.c
net/ipx/af_ipx.c
net/netfilter/nf_conntrack_core.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue.c
net/netfilter/xt_time.c
net/sched/sch_netem.c
net/socket.c
net/sunrpc/svcsock.c
sound/core/hrtimer.c