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)
commit2456e855354415bfaeb7badaa14e11b3e02c8466
tree6fc81500645174c246c3fdb568cba32aa01960c6
parenta5a1d1c2914b5316924c7893eb683a5420ebd3be
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