ktime: Cleanup ktime_set() usage
authorThomas Gleixner <tglx@linutronix.de>
Sun, 25 Dec 2016 11:30:41 +0000 (12:30 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 Dec 2016 16:21:22 +0000 (17:21 +0100)
commit8b0e195314fabd58a331c4f7b6db75a1565535d7
tree6ff9d2d9388406b8447b09b6a4037795142172de
parent2456e855354415bfaeb7badaa14e11b3e02c8466
ktime: Cleanup ktime_set() usage

ktime_set(S,N) was required for the timespec storage type and is still
useful for situations where a Seconds and Nanoseconds part of a time value
needs to be converted. For anything where the Seconds argument is 0, this
is pointless and can be replaced with a simple assignment.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
56 files changed:
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/oprofile/cell/spu_profiler.c
arch/s390/kvm/interrupt.c
arch/x86/kvm/lapic.c
block/blk-mq.c
drivers/base/power/main.c
drivers/base/power/wakeup.c
drivers/block/null_blk.c
drivers/dma/dmatest.c
drivers/gpu/drm/amd/amdgpu/dce_virtual.c
drivers/gpu/drm/i915/intel_uncore.c
drivers/gpu/drm/nouveau/nouveau_fence.c
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
drivers/iio/trigger/iio-trig-hrtimer.c
drivers/input/joystick/walkera0701.c
drivers/mailbox/mailbox.c
drivers/media/dvb-core/dmxdev.c
drivers/media/pci/cx88/cx88-input.c
drivers/media/pci/pt3/pt3.c
drivers/net/can/softing/softing_fw.c
drivers/net/can/softing/softing_main.c
drivers/net/ethernet/ec_bhf.c
drivers/net/ethernet/marvell/mvpp2.c
drivers/net/ethernet/tile/tilegx.c
drivers/net/ieee802154/at86rf230.c
drivers/net/usb/cdc_ncm.c
drivers/net/wireless/ralink/rt2x00/rt2800usb.c
drivers/pci/quirks.c
drivers/platform/x86/msi-wmi.c
drivers/power/reset/ltc2952-poweroff.c
drivers/rtc/interface.c
drivers/s390/crypto/ap_bus.c
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
drivers/scsi/scsi_debug.c
drivers/scsi/ufs/ufshcd.c
drivers/usb/gadget/function/f_ncm.c
drivers/usb/host/ehci-timer.c
drivers/usb/host/fotg210-hcd.c
drivers/usb/musb/musb_cppi41.c
fs/dlm/lock.c
fs/gfs2/glock.c
fs/timerfd.c
include/linux/skbuff.h
kernel/sched/core.c
kernel/time/alarmtimer.c
kernel/time/hrtimer.c
kernel/time/posix-timers.c
kernel/time/tick-common.c
net/can/bcm.c
net/mac802154/util.c
net/sched/sch_cbq.c
net/sctp/transport.c
net/xfrm/xfrm_state.c
sound/drivers/pcsp/pcsp_lib.c
sound/firewire/lib.c
sound/sh/sh_dac_audio.c