On Wed, Jul 09, 2014 at 02:23:42PM +0200, Geert Uytterhoeven wrote:
> - r8a7792 (R-Car V2H)
> - r8a7793 (R-Car M2-N)
> - r8a7794 (R-Car E2)
>
> r8a7791 is now called "R-Car M2-W".
I don't feel strongly about this either way. But it seems to me that if we
want to start using "M2-W" then we
On Fri, 2014-07-11 at 07:13 -0600, Alex Williamson wrote:
> On Fri, 2014-07-11 at 20:30 +0800, Ethan Zhao wrote:
> > This patch introduces two new device assignment functions
> >
> > pci_iov_assign_device(),
> > pci_iov_deassign_device()
> >
> > along with the existed one
> >
> >
On 11/07/14 07:35, Viresh Kumar wrote:
Hi Tuomas,
On 11 July 2014 03:12, Tuomas Tynkkynen wrote:
Add a new cpufreq driver for Tegra124. Instead of using the PLLX as
the CPU clocksource, switch immediately to the DFLL. It allows the use
of higher clock rates, and will automatically scale the
Driver providing perf backend for ARM Cache Coherent Network
interconnect. Supports counting all hardware events and crosspoint
watchpoints.
Currently works with CCN-504 only, although there should be
no changes required for CCN-508 (just impossible to test it now).
Signed-off-by: Pawel Moll
If .config has been edited, there will be a silentoldconfig run:
$ make defconfig
...
$ make kernelrelease
scripts/kconfig/conf --silentoldconfig Kconfig
3.16.0-rc1+
Recently, kbuild started to print the name of the build directory when
using O=
$ make O=build kernelrelease
This patch adds helper functions for registering/unregistering
LED class flash devices as V4L2 subdevs. The functions should
be called from the LED subsystem device driver. In case the
support for V4L2 Flash sub-devices is disabled in the kernel
config the functions' empty versions will be used.
Hi Thomas,
On Fri, Jul 11, 2014 at 3:44 PM, Thomas Gleixner wrote:
> Provide a default stub function instead of having the extra
> conditional. Cuts binary size on a m68k build by ~100 bytes.
Thanks about caring about binary size.
> Signed-off-by: Thomas Gleixner
Acked-by: Geert Uytterhoeven
On Thu, Jul 10, 2014 at 11:36:10PM +0100, Bjorn Helgaas wrote:
> Most of the rest of the v7 discussion was about "Introduce a domain
> number for pci_host_bridge." I think we should add arm64 using the
> existing pci_scan_root_bus() and keep the domain number in the arm64
> sysdata structure like
Reorder include directives so that they are arranged
in alphabetical order.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Bryan Wu
Cc: Richard Purdie
---
drivers/leds/led-class.c | 13 +++--
drivers/leds/led-core.c |3 ++-
include/linux/leds.h |2 +-
3
Here usb-stick image with the new (Alan) version of the patches.
https://susestudio.com/download/1cbfcf5c4ca89206fc170f00b962be0a/openSUSE_13.1_parport_pc.i686-0.1.0.oem.tar.gz
login root:linux or tux:linux
Heiko, could you please also check that you see EPP?
2014-07-11 1:48 GMT+04:00 Leopold
Make the sysfs attributes definition consistent in the whole file.
The modification entails change of the function name:
led_max_brightness_show -> max_brightness_show
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Bryan Wu
Cc: Richard Purdie
---
drivers/leds/led-class.c |4
led_update_brightness helper function used to be exploited only locally
in the led-class.c module, where its result was being passed to the
brightness_show sysfs callback. With the introduction of v4l2-flash
subdevice the same functionality became required for reading current
brightness from a LED
Add mechanism for locking LED subsystem sysfs interface.
This patch prepares ground for addition of LED Flash Class extension.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Bryan Wu
Cc: Richard Purdie
---
drivers/leds/led-class.c| 13 +++--
drivers/leds/led-core.c
Documentations states that brightness units type is enum led_brightness
and this is the type used by the led API functions. Adjust the type
of brightness variables in the struct led_classdev accordingly.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Bryan Wu
Cc: Richard Purdie
This patch prepares ground for addition of LED Flash Class extension to
the LED subsystem. Since turning the torch on must have guaranteed
immediate effect the brightness_set op can't be used for it. Drivers must
schedule a work queue task in this op to be compatible with led-triggers,
which call
Addition of a LED Flash Class extension entails the need for flash led
specific device tree properties. The properties being added are:
iout-torch, iout-flash, iout-indicator and flash-timeout.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Stephen Warren
Cc: Grant Likely
Cc: Rob
Exemplary driver showing usage of the Flash Manager API
for registering/unregistering asynchronous multiplexers
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Bryan Wu
Cc: Richard Purdie
---
Documentation/leds/leds-async-mux.c | 65 +++
1 file
Add V4L2_CID_STROBE_PROVIDER of type menu, which allows
for enumerating of available external flash strobe signal
providers and setting the active one.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Sakari Ailus
Cc: Hans Verkuil
---
Documentation/DocBook/media/v4l/controls.xml |
This patch adds led-flash support to Maxim max77693 chipset.
A device can be exposed to user space through LED subsystem
sysfs interface or through V4L2 subdevice when the support
for V4L2 Flash sub-devices is enabled. Device supports up to
two leds which can work in flash and torch mode. Leds can
This patch adds device tree binding documentation for
the flash cell of the Maxim max77693 multifunctional device.
Signed-off-by: Andrzej Hajda
Acked-by: Kyungmin Park
Cc: Rob Herring
Cc: Pawel Moll
Cc: Mark Rutland
Cc: Ian Campbell
Cc: Kumar Gala
---
Extract the code executed for each entry of the subdev list
and put it to the separate function. Export it as a public API.
It allows for registering single sub-device at a time.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Hans Verkuil
Cc: Laurent Pinchart
---
The wrapper for strnicmp is required for checking whether a node has
expected prefix.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Grant Likely
Cc: Benjamin Herrenschmidt
Cc: Michal Simek
---
include/linux/of.h |1 +
1 file changed, 1 insertion(+)
diff --git
The documentation being added contains overall description of the
LED Flash Class and the related sysfs attributes. There are also
chapters devoted specifically to the Flash Manager feature.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Bryan Wu
Cc: Richard Purdie
---
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h |9 -
kernel/time/timekeeping.c | 15 ---
2 files changed, 8 insertions(+), 16 deletions(-)
Index: tip/include/linux/timekeeping.h
===
---
On Wed, Jul 09, 2014 at 12:02:03PM -0400, Rik van Riel wrote:
> On 07/05/2014 06:44 AM, tip-bot for Rik van Riel wrote:
> > Commit-ID: 6dc1a672ab15604947361dcd02e459effa09bad5
> > Gitweb:
> > http://git.kernel.org/tip/6dc1a672ab15604947361dcd02e459effa09bad5
> > Author: Rik van Riel
> >
Speed up ktime_get() by using ktime_t based data. Text size shrinks by
64 bytes on x8664.
Signed-off-by: Thomas Gleixner
---
kernel/time/timekeeping.c |9 +
1 file changed, 5 insertions(+), 4 deletions(-)
Index: tip/kernel/time/timekeeping.c
Provide a helper function which lets us implement ktime_t based
interfaces for real, boot and tai clocks.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h |9 +
kernel/time/timekeeping.c | 27 +++
2 files changed, 36 insertions(+)
Index:
This patch adds device tree binding documentation for
1.5A Step-Up Current Regulator for Flash LEDs.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Rob Herring
Cc: Pawel Moll
Cc: Mark Rutland
Cc: Ian Campbell
Cc: Kumar Gala
---
.../devicetree/bindings/leds/leds-aat1290.txt
Add device node for AAT1290 1.5A Step-Up Current Regulator
for Flash LEDs along with flash_muxes node containing
information about a multiplexer that is used for switching
between software and external strobe signal source.
Signed-off-by: Jacek Anaszewski
Signed-off-by: Kyungmin Park
Cc: Kukjin
This patch adds a driver for the 1.5A Step-Up
Current Regulator for Flash LEDs. The device is
programmed through a Skyworks' proprietary AS2Cwire
serial digital interface.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Bryan Wu
Cc: Richard Purdie
---
drivers/leds/Kconfig
This patch documents LED Class Flash Manager
related bindings.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Bryan Wu
Cc: Richard Purdie
Cc: Rob Herring
Cc: Pawel Moll
Cc: Mark Rutland
Cc: Ian Campbell
Cc: Kumar Gala
---
.../bindings/leds/leds-flash-manager.txt |
Use "skyworks" as the vendor prefix for the
Skyworks Solutions, Inc.
Signed-off-by: Jacek Anaszewski
Acked-by: Kyungmin Park
Cc: Rob Herring
Cc: Pawel Moll
Cc: Mark Rutland
Cc: Ian Campbell
Cc: Kumar Gala
---
.../devicetree/bindings/vendor-prefixes.txt|1 +
1 file changed, 1
On Fri, Jul 11, 2014 at 9:44 AM, Thomas Gleixner wrote:
> Replace the ever recurring:
> ts = ktime_get_ts();
> ns = timespec_to_ns();
> with
> ns = ktime_get_ns();
>
> Signed-off-by: Thomas Gleixner
> Cc: "J. Bruce Fields"
> Cc: Trond Myklebust
> ---
> fs/lockd/mon.c |
This is is the fourth version of the patch series being a follow up
of the discussion on Media summit 2013-10-23, related to the
LED / flash API integration (the notes from the discussion were
enclosed in the message [1], paragraph 5).
The series is based on linux-next-20140707
Description of the
Am Freitag, den 11.07.2014, 15:58 +0200 schrieb Stefan Agner:
> Hi Marc,
>
> Am 2014-07-11 14:09, schrieb Marc Kleine-Budde:
> > IMHO it should be 4 seperate patches:
> > - dt
> > - clocks
> > - flexcan_get_berr_counter fixes
> > - your flexcan enhancements
>
> Ok, will split.
>
> >> @@ -362,7
Provide a default stub function instead of having the extra
conditional. Cuts binary size on a m68k build by ~100 bytes.
Signed-off-by: Thomas Gleixner
---
kernel/time/timekeeping.c | 18 ++
1 file changed, 6 insertions(+), 12 deletions(-)
Index: tip/kernel/time/timekeeping.c
The patch series addresses the following points:
1) Make the core timekeeping code ready for 2038
This is work done by John Stultz with a few clenaups and
modifications from me.
This switches ktime_t to the scalar nanoseconds format.
We can ged rid of the union now, but
With the plain nanoseconds based ktime_t we can simply use
ktime_divns() instead of going through loops and hoops of
timespec/timeval conversion.
Reported-by: John Stultz
Signed-off-by: Thomas Gleixner
---
include/linux/hrtimer.h |6 --
include/linux/ktime.h | 12
2
From: John Stultz
Rather then having two similar but totally different implementations
that provide timekeeping state to the hrtimer code, try to unify the
two implementations to be more simliar.
Thus this clarifies ktime_get_update_offsets to
ktime_get_update_offsets_now and changes
On Fri, Jul 11, 2014 at 02:01:59PM +0100, Thierry Reding wrote:
> On Fri, Jul 11, 2014 at 02:58:09PM +0200, Arnd Bergmann wrote:
> > On Friday 11 July 2014, Catalin Marinas wrote:
> > > ioread32() is indeed an alias for readl on arm64 but if the address it
> > > gets as argument looks like an I/O
From: John Stultz
The non-scalar ktime_t implementation is basically a timespec
which has to be changed to support dates past 2038 on 32bit
systems.
This patch removes the non-scalar ktime_t implementation, forcing
the scalar s64 nanosecond version on all architectures.
This may have
From: John Stultz
Define the timespec64 structure and standard helper functions.
[ tglx: Make it 32bit only. 64bit really can map timespec to timespec64 ]
Signed-off-by: John Stultz
Signed-off-by: Thomas Gleixner
---
include/linux/time.h | 15
include/linux/time64.h | 163
From: John Stultz
In order to support dates past 2038 on 32bit systems, ktime_set()
needs to handle 64bit second values.
[ tglx: Removed the BITS_PER_LONG check ]
Signed-off-by: John Stultz
Signed-off-by: Thomas Gleixner
---
include/linux/ktime.h |7 +++
1 file changed, 3
From: John Stultz
Helper and conversion functions for timespec64.
Signed-off-by: John Stultz
Signed-off-by: Thomas Gleixner
---
include/linux/ktime.h | 28 ++
include/linux/time64.h | 28 ++
kernel/time/time.c | 62
Right now we have time related prototypes in 3 different header
files. Move it to a single timekeeping header file and move the core
internal stuff into a core private header.
Signed-off-by: Thomas Gleixner
---
include/linux/hrtimer.h | 11 --
include/linux/ktime.h |8 +---
Simplify the only user of this data by removing the timespec
conversion.
Signed-off-by: Thomas Gleixner
---
fs/proc/array.c |7 +--
include/linux/sched.h |2 +-
kernel/fork.c |3 +--
3 files changed, 3 insertions(+), 9 deletions(-)
Index: tip/fs/proc/array.c
Replace the ever recurring:
ts = ktime_get_ts();
ns = timespec_to_ns();
with
ns = ktime_get_ns();
Signed-off-by: Thomas Gleixner
Cc: Arnd Bergmann
---
arch/powerpc/platforms/cell/spu_base.c | 11 +++
arch/powerpc/platforms/cell/spufs/context.c |4 +---
Kill the timespec juggling and calculate with plain nanoseconds.
Signed-off-by: Thomas Gleixner
---
include/linux/sched.h |4 ++--
kernel/delayacct.c| 34 --
2 files changed, 14 insertions(+), 24 deletions(-)
Index: tip/include/linux/sched.h
struct timekeeper is quite badly sorted for the hot readout path. Most
time access functions need to load two cache lines.
Rearrange it so ktime_get() and getnstimeofday() are happy with a
single cache line.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeper_internal.h | 84
The ktime_t based interfaces are used a lot in performance critical
code pathes. Add ktime_t based data so the interfaces don't have to
convert from the xtime/timespec based data.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeper_internal.h |3 +++
kernel/time/timekeeping.c
On Fri, 11 Jul 2014, Linus Walleij wrote:
> On Fri, Jul 11, 2014 at 4:30 AM, Steven Rostedt wrote:
>
> > commit a0998b8321eb5f53ef51924f5ab6c69237ac1025
> > Author: Lee Jones
> > Date: Thu Aug 22 16:18:56 2013 +0100
> >
> > ARM: ux500: Remove UART support when booting without Device Tree
On Fri, Jul 11, 2014 at 08:56:04AM -0500, Christoph Lameter wrote:
> On Fri, 11 Jul 2014, Frederic Weisbecker wrote:
>
> > > @@ -1228,20 +1244,105 @@ static const struct file_operations proc
> > > #ifdef CONFIG_SMP
> > > static DEFINE_PER_CPU(struct delayed_work, vmstat_work);
> > > int
To convert callers of the core code to timespec64 we need to provide
the proper interfaces.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h | 66
kernel/time/ntp.c |7 ++--
kernel/time/timekeeping.c | 47
Hi Marc,
Am 2014-07-11 14:09, schrieb Marc Kleine-Budde:
> IMHO it should be 4 seperate patches:
> - dt
> - clocks
> - flexcan_get_berr_counter fixes
> - your flexcan enhancements
Ok, will split.
>> @@ -362,7 +374,7 @@
>>
>> esdhc1: esdhc@400b2000 {
>>
From: John Stultz
Convert the core timekeeping logic to use timespec64s. This moves the
2038 issues out of the core logic and into all of the accessor
functions.
Future changes will need to push the timespec64s out to all
timekeeping users, but that can be done interface by interface.
No users outside of the core.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeper_internal.h | 18 -
kernel/time/timekeeping.c | 70 ++--
2 files changed, 43 insertions(+), 45 deletions(-)
Index:
On Fri, 11 Jul 2014, Frederic Weisbecker wrote:
> > @@ -1228,20 +1244,105 @@ static const struct file_operations proc
> > #ifdef CONFIG_SMP
> > static DEFINE_PER_CPU(struct delayed_work, vmstat_work);
> > int sysctl_stat_interval __read_mostly = HZ;
> > +struct cpumask *cpu_stat_off;
>
> I
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h | 12 +++-
kernel/time/timekeeping.c | 17 -
2 files changed, 11 insertions(+), 18 deletions(-)
Index: tip/include/linux/timekeeping.h
===
On Fri, 11 Jul 2014, Steven Rostedt wrote:
> On Fri, 11 Jul 2014 14:00:55 +0200
> Linus Walleij wrote:
>
> > On Fri, Jul 11, 2014 at 4:30 AM, Steven Rostedt wrote:
> >
> > > commit a0998b8321eb5f53ef51924f5ab6c69237ac1025
> > > Author: Lee Jones
> > > Date: Thu Aug 22 16:18:56 2013 +0100
>
Speed up the readout.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h |9 -
kernel/time/timekeeping.c | 15 ---
2 files changed, 8 insertions(+), 16 deletions(-)
Index: tip/include/linux/timekeeping.h
No need to juggle with timespecs.
Signed-off-by: Thomas Gleixner
---
kernel/time/timekeeping.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
Index: tip/kernel/time/timekeeping.c
===
---
No need to juggle with timespecs.
Signed-off-by: Thomas Gleixner
---
kernel/time/timekeeping.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
Index: tip/kernel/time/timekeeping.c
===
---
ktime based conversion function to map a monotonic time stamp to a
different CLOCK.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h |9 +
kernel/time/timekeeping.c | 20
2 files changed, 29 insertions(+)
Index: tip/include/linux/timekeeping.h
Convert the monotonic timestamp with ktime_mono_to_real() in
evdev_events().
In evdev_queue_syn_dropped() we can call either ktime_get() or
ktime_get_real() depending on the clkid. No point in having two calls
for CLOCK_REALTIME.
Signed-off-by: Thomas Gleixner
---
drivers/input/evdev.c |7
Convert the monotonic timestamp with ktime_mono_to_real() in
drm_calc_vbltimestamp_from_scanoutpos().
In get_drm_timestamp we can call either ktime_get() or
ktime_get_real() depending on drm_timestamp_monotonic. No point in
having two calls into the core for CLOCK_REALTIME.
Signed-off-by: Thomas
Signed-off-by: Thomas Gleixner
---
kernel/time/time.c |1 +
1 file changed, 1 insertion(+)
Index: tip/kernel/time/time.c
===
--- tip.orig/kernel/time/time.c
+++ tip/kernel/time/time.c
@@ -757,6 +757,7 @@ unsigned long
We have a few other use cases of ktime_get_monotonic_offset() which
can be optimized with ktime_mono_to_real(). The timerfd code uses the
offset only for comparison, so we can use ktime_mono_to_real(0) for
this as well.
Funny enough text size shrinks with that on ARM and x8664 !?
Signed-off-by:
A lot of code converts either timespecs or ktime_t to
nanoseconds. Provide helper functions.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h | 15 +++
1 file changed, 15 insertions(+)
Index: tip/include/linux/timekeeping.h
No more users.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h |1 -
kernel/time/timekeeping.c | 18 --
2 files changed, 19 deletions(-)
Index: tip/include/linux/timekeeping.h
===
---
The only user of the cycle_last validation is the x86 TSC. In order to
provide NMI safe accessor functions for clock monotonic and
monotonic_raw we need to do that in the core.
We can't do the TSC specific
if (now < cycle_last)
now = cycle_last;
for the other wrapping around
Replace the ever recurring:
ts = ktime_get_ts();
ns = timespec_to_ns();
with
ns = ktime_get_ns();
Signed-off-by: Thomas Gleixner
Cc: "J. Bruce Fields"
Cc: Trond Myklebust
---
fs/lockd/mon.c |4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Index:
Convert the relevant base data right away to nanoseconds instead of
doing the conversion on every readout. Reduces text size by 160 bytes.
Signed-off-by: Thomas Gleixner
Cc: Gleb Natapov
Cc: k...@vger.kernel.org
---
arch/x86/kvm/x86.c | 44 ++--
1 file
Use the new nanoseconds based interface and get rid of the timespec
conversion dance.
Signed-off-by: Thomas Gleixner
Cc: Gleb Natapov
Cc: k...@vger.kernel.org
---
arch/x86/kvm/x86.c |6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
Index: tip/arch/x86/kvm/x86.c
get_monotonic_boottime() is not used in fast pathes, so the extra
timespec conversion is not problematic.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h |9 -
kernel/time/timekeeping.c | 34 --
2 files changed, 8 insertions(+), 35
The code was only halfarsed converted to the new VSDO update mechanism
and still uses the inaccurate base value which lacks the fractional
part of xtime_nsec. Fix it up.
Signed-off-by: Thomas Gleixner
---
arch/tile/kernel/time.c |9 -
On Fri, 11 Jul 2014, Jiang Liu wrote:
> If CONFIG_HAVE_MEMORYLESS_NODES is disabled, cpu_to_mem()/numa_mem_id()
> is the same as cpu_to_node()/numa_node_id().
Reviewed-by: Christoph Lameter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Expose the new NMI safe accessors to clock monotonic and monotonic raw
to the tracer.
Signed-off-by: Thomas Gleixner
Cc: Steven Rostedt
Cc: Peter Zijlstra
Cc: Mathieu Desnoyers
---
kernel/trace/trace.c | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
Index:
On Fri, 11 Jul 2014, Benjamin Tissoires wrote:
> Thanks Jason. That's really appreciated. As said I will resend a full
> cleanup of these with your Rev-by and fixes, so Dmitry or Jiri can
> take the various series.
Just for the record, I will be mostly offline for the upcoming 2 weeks.
--
Jiri
On 06/04/2014 05:24 PM, Rostislav Lisovy wrote:
> GPMC controller supports up to 8 memory devices connected to it.
> Since there is one statically allocated "struct platform_device
> gpmc_nand_device" it is not possible to configure the system to
> use more than one NAND device connected to the
Converting cputime to timespec and timespec to nanoseconds makes no
sense. Use cputime_to_ns() and be done with it.
Signed-off-by: Thomas Gleixner
---
kernel/delayacct.c | 18 +++---
1 file changed, 7 insertions(+), 11 deletions(-)
Index: tip/kernel/delayacct.c
Replace the ever recurring:
ts = ktime_get_ts();
ns = timespec_to_ns();
with
ns = ktime_get_ns();
Signed-off-by: Thomas Gleixner
Cc: Evgeniy Polyakov
---
drivers/connector/cn_proc.c | 36 +---
1 file changed, 9 insertions(+), 27
Simplify the timespec to nsec/usec conversions.
Signed-off-by: Thomas Gleixner
---
include/linux/sched.h |2 +-
kernel/acct.c | 10 +++---
kernel/fork.c |2 +-
kernel/tsacct.c | 19 +--
4 files changed, 14 insertions(+), 19 deletions(-)
Hi Linus,
The following changes since commit 4c834452aad01531db949414f94f817a86348d59:
Linux 3.16-rc3 (2014-06-29 14:11:36 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
tags/dm-3.16-fixes
for you to fetch changes
This code is beyond silly:
struct timespec ts = ktime_get_ts();
ktime_t ktime = timespec_to_ktime(ts);
Further down the code builds the delta of two ktime_t values and
converts the result to nanoseconds.
Use ktime_get_ns() and replace all the nonsense.
Signed-off-by: Thomas Gleixner
Replace the ever recurring:
ts = ktime_get_ts();
ns = timespec_to_ns();
with
ns = ktime_get_ns();
Signed-off-by: Thomas Gleixner
Cc: Samuel Ortiz
---
drivers/mfd/cros_ec_spi.c |7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
Index:
Tracers want a correlated time between the kernel instrumentation and
user space. We really do not want to export sched_clock() to user
space, so we need to provide something sensible for this.
Using separate data structures with an non blocking sequence count
based update mechanism allows us to
raw_read_seqcount opens a read critical section of the given seqcount
without any lockdep checking and without checking or masking the
LSB. Calling code is responsible for handling that.
Preparatory patch to provide NMI safe clock monotonic[_raw] accessor
functions.
Signed-off-by: Thomas
Use the nanoseconds based interface instead of converting from a
timespec.
Signed-off-by: Thomas Gleixner
Cc: Russell King
Cc: linux-arm-ker...@lists.infradead.org
---
arch/arm/common/bL_switcher.c | 16 +++-
1 file changed, 3 insertions(+), 13 deletions(-)
Index:
Using the wall clock time for delta time calculations is wrong to
begin with because wall clock time can be set from userspace and NTP.
Such data wants to be based on clock monotonic.
The calcuations also are done on a nanosecond basis. Use the
nanoseconds based interface right away.
No more users.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeping.h |1 -
kernel/time/timekeeping.c | 15 ---
2 files changed, 16 deletions(-)
Index: tip/include/linux/timekeeping.h
===
---
Replace the ever recurring:
ts = ktime_get_ts();
ns = timespec_to_ns();
with
ns = ktime_get_ns();
Signed-off-by: Thomas Gleixner
Cc: Arnd Bergmann
Cc: Greg Kroah-Hartman
---
drivers/misc/ioc4.c |7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
Index:
No idea why iio needs wall clock based time stamps, but we can avoid
the timespec conversion dance by using the new interfaces.
Signed-off-by: Thomas Gleixner
Cc: Jonathan Cameron
---
include/linux/iio/iio.h |9 +
1 file changed, 1 insertion(+), 8 deletions(-)
Index:
We want to move the TSC sanity check into core code to make NMI safe
accessors to clock monotonic[_raw] possible. For this we need to
sanity check the delta calculation. Create a helper function and
convert all sites to use it.
[ Build fix from jstultz ]
Signed-off-by: Thomas Gleixner
---
No point in converting timespecs back and forth.
Signed-off-by: Thomas Gleixner
Cc: Daniel Vetter
---
drivers/gpu/drm/i915/i915_drv.h |2 +-
drivers/gpu/drm/i915/i915_gem.c | 33 -
drivers/gpu/drm/i915/intel_pm.c | 12 +---
3 files changed, 18
We have interfaces. Remove the open coded cruft. Reduces text size
along with the code.
Signed-off-by: Thomas Gleixner
Cc: QCA ath9k Development
Cc: "John W. Linville"
---
drivers/net/wireless/ath/ath9k/hw.c |7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
Index:
Provide a ktime_t based interface for raw monotonic time.
Signed-off-by: Thomas Gleixner
---
include/linux/timekeeper_internal.h |3 +++
include/linux/timekeeping.h |6 ++
kernel/time/timekeeping.c | 26 ++
3 files changed, 35
On Fri, Jul 11, 2014 at 06:35:03AM -0700, Paul E. McKenney wrote:
> From: "Paul E. McKenney"
>
> Enabling NO_HZ_FULL currently has the side effect of enabling callback
> offloading on all CPUs. This results in lots of additional rcuo kthreads,
> and can also increase context switching and
On Fri, Jul 11, 2014 at 1:48 PM, Srinivas Kandagatla
wrote:
> On Qualcomm APQ8064 SOCs, SD card controller has an additional glue
> called DML (Data Mover Local/Lite) to assist dma transfers.
> This hardware needs to be setup before any dma transfer is requested.
> DML itself is not a DMA
Use the nanoseconds based interface instead of converting timespecs.
Signed-off-by: Thomas Gleixner
Cc: Arnd Bergmann
Cc: Greg Kroah-Hartman
---
drivers/char/hangcheck-timer.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
Index: tip/drivers/char/hangcheck-timer.c
No point in converting timespecs back and forth.
Signed-off-by: Thomas Gleixner
Cc: Thomas Hellstrom
---
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|4 +--
drivers/gpu/drm/vmwgfx/vmwgfx_marker.c | 44 ++---
2 files changed, 16 insertions(+), 32 deletions(-)
501 - 600 of 1880 matches
Mail list logo