[PATCH 79/89] sched/core: Remove the tsk_nr_cpus_allowed() wrapper

2017-02-06 Thread Ingo Molnar
tsk_nr_cpus_allowed() too is a pretty pointless wrapper that is not used consistently and which makes the code both harder to read and longer as well. So remove it - this also shrinks a bit. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.ke

[PATCH 65/89] sched/headers: Move 'init_task' and 'init_thread_union' from to

2017-02-06 Thread Ingo Molnar
'init_task' is really not part of core scheduler APIs but part of the fork() interface between the scheduler and process management. So move the declarations - and update affected code. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.o

[PATCH 88/89] sched/headers: Remove #ifdefs from

2017-02-06 Thread Ingo Molnar
We can remove two pairs of #ifdefs by defining structures in a smarter way. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 12 1 file changed, 4 insertions(+), 8

[PATCH 70/89] sched/core: Remove unused prefetch_stack()

2017-02-06 Thread Ingo Molnar
prefetch_stack() is defined by IA64, but not actually used anywhere anymore. Remove it. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/ia64/include/asm/processor.h | 2 -- arch/ia64/kernel/en

[PATCH 89/89] sched/headers: Clean up

2017-02-06 Thread Ingo Molnar
Now that dependencies have been sorted out, do various trivial cleanups: - remove unnecessary structure predeclarations - fix various typos - update comments where necessary - remove pointless comments - use consistent types - tabulate consistently - use a consistent comment style - clean

[PATCH 71/89] sched/headers, vfs/execve: Move the do_execve*() prototypes from to

2017-02-06 Thread Ingo Molnar
... and update the usage sites where necessary. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/binfmts.h | 10 ++ include/linux/sched.h | 8 init/main.c

[PATCH 72/89] sched/headers: Move kstack_end() from to

2017-02-06 Thread Ingo Molnar
... and update usage sites, where necessary. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/m32r/kernel/traps.c | 2 ++ arch/metag/kernel/stacktrace.c | 1 + arch/openrisc/kernel/tr

Re: [PATCH 2/2] arm64: mm: enable CONFIG_HOLES_IN_ZONE for NUMA

2017-02-06 Thread Robert Richter
On 14.12.16 09:11:47, Ard Biesheuvel wrote: > The NUMA code may get confused by the presence of NOMAP regions within > zones, resulting in spurious BUG() checks where the node id deviates > from the containing zone's node id. > > Since the kernel has no business reasoning about node ids of pages i

[PATCH 68/89] sched/headers: Split cputime functionality out of , into

2017-02-06 Thread Ingo Molnar
Move cputime related functionality out of , as most code that includes does not use that functionality. Move data types that are not included in task_struct directly to the signal definitions, into . Also merge the (small) existing header into . Update all code that relies on these facilities

[PATCH 67/89] sched/headers: Move the task_lock()/unlock() APIs to

2017-02-06 Thread Ingo Molnar
The task_lock()/task_unlock() APIs are not realated to core scheduling, they are task lifetime APIs, i.e. they belong into . Move them and update the code that uses these facilities. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org

[PATCH 69/89] sched/headers: Move sched_info_on() and force_schedstat_enabled() from to

2017-02-06 Thread Ingo Molnar
These APIs are not core scheduler but statistics related. Update usage sites. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/x86/kvm/cpuid.c | 2 ++ arch/x86/kvm/x86.c | 2 ++

Applied "regulator: core: have regulator_dev_lookup() return ERR_PTR-encoded errors" to the regulator tree

2017-02-06 Thread Mark Brown
The patch regulator: core: have regulator_dev_lookup() return ERR_PTR-encoded errors has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually someti

[PATCH 59/89] sched/core: Move the get_preempt_disable_ip() inline to sched/core.c

2017-02-06 Thread Ingo Molnar
It's defined in , but nothing outside the scheduler uses it - so move it to the sched/core.c usage site. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 9 - kernel/sc

[PATCH 60/89] signals: Split out from

2017-02-06 Thread Ingo Molnar
Separate out just the pure data types - sched.h will be able to use this reduced size header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/mips/include/asm/abi.h | 2 ++ include/linux/signa

[PATCH 62/89] mm/headers, sched/headers: Split out of

2017-02-06 Thread Ingo Molnar
Separate all the MM types that are embedded directly in 'struct task_struct' into the new header. The goal is to include this header in , not the full header, to reduce the size, complexity and coupling of . (This patch does not change yet.) Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas

[PATCH 55/89] sched/core: Clean up structure predeclarations and remove stale entries

2017-02-06 Thread Ingo Molnar
Most of the structure predeclarations were at the head of sched.h, but not all of them - there were a number of lines spread around sched.h, in random places. Move them to the head, and also sort them alphabetically. Also, while at it: - remove a stray #include - remove runqueue_is_locked()

[PATCH 61/89] sched/headers: Reduce signal API dependency

2017-02-06 Thread Ingo Molnar
Instead of including the full , only include the types-only header in , to further decouple the scheduler header from the signal headers. Also update which now needs the additional header. Update the code that relied on sched.h's inclusion of the signal.h header. Cc: Peter Zijlstra Cc: Mike G

[PATCH 63/89] sched/headers: Remove the dependency from

2017-02-06 Thread Ingo Molnar
Use the freshly introduced, reduced size header instead. Update the code that relied on sched.h including the MM types for them. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/alpha/include/a

Re: [PATCH 3/4] tools lib feature: Do not redefine compiler configuration

2017-02-06 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 01, 2017 at 10:38:03PM -0800, David Carrillo-Cisneros escreveu: > Feature detection redefines CC, CCX and PKG_CONFIG, making the > output of feature detection inconsistent with the actual features > available during compilation when the above variables are used. > > Fix it by using con

[PATCH 64/89] sched/headers: Remove 'init_pid_ns' prototype from

2017-02-06 Thread Ingo Molnar
pid.h already defines it. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h inde

[PATCH 57/89] sched/headers: Split out of

2017-02-06 Thread Ingo Molnar
Split out the task->stack related functionality, which is not really part of the core scheduler APIs. Update the code that uses those facilities. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch

Re: [PATCH 00/89] Major reorganization of

2017-02-06 Thread Ingo Molnar
* Ingo Molnar wrote: > sched/core: Clean up comments > delayacct: Include > sched/rq_clock: Consolidate the ordering of the rq_clock methods > sched/core: Remove unnecessary #include headers > sched/topology: Split out scheduler topology code from core.c into > topology.c > sched/t

[PATCH v11 5/9] mmc: cavium: Add support for Octeon cn7890

2017-02-06 Thread Jan Glauber
The MMC unit on Octeon cn7890 differs in that it has multiple interrupts. Requires a lock for the interrupt handler. DMA addresses have a dedicated 64 bit register now, so use that when available. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- drivers/m

[PATCH v11 7/9] mmc: cavium: Add scatter-gather DMA support

2017-02-06 Thread Jan Glauber
Add Support for the scatter-gather DMA available in the ThunderX MMC units. Up to 16 DMA requests can be processed together. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- drivers/mmc/host/cavium-mmc.c | 105 - d

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 4:52 AM, Philipp Zabel wrote: > On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: >> Convert drivers to use the new of_graph_get_remote_node() helper >> instead of parsing the endpoint node and then getting the remote device >> node. Now drivers can just specify the devi

[PATCH v11 0/9] Cavium MMC driver

2017-02-06 Thread Jan Glauber
Hi Ulf, I've implemented the fixed regulator support as requested. Nevertheless we need to keep the code for the global power gpio around because that will still be used by existing Octeon systems (where we can't update the DT). I've kept the dummy device approach for mmc_of_parse() and devm*, be

[PATCH v11 9/9] MAINTAINERS: Add entry for Cavium MMC driver

2017-02-06 Thread Jan Glauber
Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2c171ad..81afd78 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2999,6 +2999,14 @@ S: Supported

[PATCH v11 4/9] mmc: cavium: Work-around hardware bug on cn6xxx and cnf7xxx

2017-02-06 Thread Jan Glauber
Prevent data corruption on cn6xxx and cnf7xxx. Due to an imperfection in the design of the MMC bus hardware, the 2nd to last cache block of a DMA read must be locked into the L2 cache. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- arch/mips/cavium-octe

[PATCH v11 8/9] mmc: cavium: Support DDR mode for eMMC devices

2017-02-06 Thread Jan Glauber
Add support for switching to DDR mode for eMMC devices. Although the host controller only supports 3.3 Volt and DDR52 uses 1.8 Volt according to the specification it is possible to use DDR also with 3.3 Volt for eMMC chips. To switch to DDR mode MMC_CAP_1_8V_DDR is required. Signed-off-by: Jan Gl

Re: [PATCH 1/5] of: introduce of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 2:50 AM, Daniel Vetter wrote: > On Fri, Feb 03, 2017 at 09:36:31PM -0600, Rob Herring wrote: >> The OF graph API leaves too much of the graph walking to clients when >> in many cases the driver doesn't care about accessing the port or >> endpoint nodes. The drivers typically

Re: [PATCH v2 5/7] gpio: mockup: add a dummy irqchip

2017-02-06 Thread Linus Walleij
On Mon, Feb 6, 2017 at 2:31 PM, Bartosz Golaszewski wrote: > 2017-02-06 14:29 GMT+01:00 Linus Walleij : >> On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski >> wrote: >> >>> Setup a dummy irqchip that will allow us to inject line events for >>> testing purposes. >>> >>> Signed-off-by: Bartosz G

Re: [PATCH 2/3] perf diff: Add diff.order config option

2017-02-06 Thread Namhyung Kim
Hi Taeung, On Mon, Feb 06, 2017 at 06:44:42PM +0900, Taeung Song wrote: > Hi, Namhyung :) > > On 02/06/2017 04:20 PM, Namhyung Kim wrote: > > In many cases, I need to look at differences between two data so I often > > used the -o option to sort the result base on the difference first. > > It'd b

Re: [PATCH] drbd: avoid clang warning about pointless switch statement

2017-02-06 Thread Lars Ellenberg
Ack. Ok, not exactly "pintless", it's a valid compile time assert for uniq ids, basically a BUILD_BUG_ON(duplicate-ids). But adding a default clause there does not hurt. Thanks, Lars On Wed, Feb 01, 2017 at 05:55:02PM +0100, Arnd Bergmann wrote: > The drbd code causes warnings that we canno

[PATCH v11 3/9] mmc: cavium: Add MMC platform driver for Octeon SOCs

2017-02-06 Thread Jan Glauber
Add a platform driver for Octeon MIPS SOCs. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- drivers/mmc/host/Kconfig | 10 ++ drivers/mmc/host/Makefile | 2 + drivers/mmc/host/cavium-mmc.h | 19 drivers/mmc/ho

Re: [PATCHSET 0/3] perf diff: Introduce delta-abs compute method

2017-02-06 Thread Namhyung Kim
On Mon, Feb 06, 2017 at 11:26:17AM +0100, Jiri Olsa wrote: > On Mon, Feb 06, 2017 at 04:20:34PM +0900, Namhyung Kim wrote: > > SNIP > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git > > > > Thanks, > > Namhyung > > > > > > Namhyung Kim (3): > > perf diff: Add

[PATCH v11 1/9] dt-bindings: mmc: Add Cavium SOCs MMC bindings

2017-02-06 Thread Jan Glauber
Add description of Cavium Octeon and ThunderX SOC device tree bindings. CC: Ulf Hansson CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- .../devicetree/bindings/mmc/cavium-mmc.txt

[PATCH v11 2/9] mmc: cavium: Add core MMC driver for Cavium SOCs

2017-02-06 Thread Jan Glauber
This core driver will be used by a MIPS platform driver or by an ARM64 PCI driver. The core driver implements the mmc_host_ops and slot probe & remove functions. Callbacks are provided to allow platform specific interrupt enable and bus locking. The host controller supports: - up to 4 slots that c

[PATCH v11 6/9] mmc: cavium: Add MMC PCI driver for ThunderX SOCs

2017-02-06 Thread Jan Glauber
Add a platform driver for ThunderX ARM SOCs. Signed-off-by: Jan Glauber Signed-off-by: David Daney Signed-off-by: Steven J. Hill --- drivers/mmc/host/Kconfig | 10 ++ drivers/mmc/host/Makefile | 2 + drivers/mmc/host/cavium-mmc.h | 38 ++ drivers/mmc

Re: Fractional divider on the Atmel USART controller

2017-02-06 Thread Ludovic Desroches
Hello Romain, On Mon, Feb 06, 2017 at 12:56:42PM +0100, Romain Izard wrote: > Hello, > > On Atmel SAMA5D2, when trying to configure a serial port for 3 Mbauds > operation, I do not always get the requested baud rate. If the hardware > flow control is disabled by software, the line works correctly

[PATCH 58/89] sched/headers: Move the 'root_task_group' declaration to

2017-02-06 Thread Ingo Molnar
Also remove the duplicate declaration from . ( That declaration was originally duplicated for dependency hell reasons, but there's no problem including the much smaller header now, to pick up the right prototype. ) Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torval

[PATCH 56/89] sched/headers: Move the PREEMPT_COUNT defines from to

2017-02-06 Thread Ingo Molnar
These defines are not really part of the scheduler's driver API, but are related to the preempt count - so move them to . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/preempt.h | 21

[PATCH 52/89] sched/headers: Split out of

2017-02-06 Thread Ingo Molnar
There's a fair amount of task lifetime management (a.k.a fork()) related APIs in , but only a small fraction of the users of the generic sched.h header make use of them. Split out these functions into the header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc

[PATCH 49/89] sched/headers: Move include from the middle of to the header portion

2017-02-06 Thread Ingo Molnar
Linux-0.01 already defined 'current' in the middle of sched.h, so this is an ancient historical precedent - but still in a modern kernel it looks a bit weird that we have: #include in the middle of the header. Move it further up. If this was done for some obscure dependency reasons then

[PATCH 53/89] sched/headers: Simplify dependencies

2017-02-06 Thread Ingo Molnar
Move rcu_copy_process() into kernel/fork.c, which is the only user of this inline function. This simplifies to the level that does not have to be included in it anymore. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-

[PATCH 48/89] sched/headers, time/timekeeping: Move the xtime_update() prototype from to

2017-02-06 Thread Ingo Molnar
This was in only for hysterical raisins. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 2 -- include/linux/time.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-)

[PATCH 45/89] mm/vmacache, sched/headers: Introduce 'struct vmacache' and move it from to

2017-02-06 Thread Ingo Molnar
The header includes various vmacache related defines, which are arguably misplaced. Move them to mm_types.h and minimize the sched.h impact by putting all task vmacache state into a new 'struct vmacache' structure. No change in functionality. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas G

[PATCH 44/89] sched/headers: Move task statistics from to

2017-02-06 Thread Ingo Molnar
There are a number of task statistics related variables and methods exported via sched.h - collect them into and include it from their usage sites. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- ar

[PATCH 42/89] sched/headers: Move the memalloc_noio_*() APIs to

2017-02-06 Thread Ingo Molnar
In preparation to remove the include from . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- drivers/base/power/runtime.c | 2 +- drivers/md/dm-bufio.c| 1 + drivers/md/dm-ioctl.c|

[PATCH 41/89] sched/headers: Move signal wakeup & sigpending methods from into

2017-02-06 Thread Ingo Molnar
... and fix up affected files that only incidentally included the signal functionality. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/arm/common/bL_switcher.c |

[PATCH 46/89] sched/headers: Move the NOHZ APIs from to

2017-02-06 Thread Ingo Molnar
There's a number of NOHZ/dyntics related functionality in , but only a handful of timer files are making use of them. Move them into their own header. This better documents these APIs and unclutters . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kerne

Re: Fractional divider on the Atmel USART controller

2017-02-06 Thread Richard Genoud
Hi Romain, On 06/02/2017 12:56, Romain Izard wrote: > Hello, > > On Atmel SAMA5D2, when trying to configure a serial port for 3 Mbauds > operation, I do not always get the requested baud rate. If the hardware > flow control is disabled by software, the line works correctly. But if I > set the crts

[PATCH 37/89] sched/headers: Remove from

2017-02-06 Thread Ingo Molnar
... and fix up missing #includes in other places that relied on sched.h doing that for them. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/alpha/math-emu/math.c| 1 + arch/sh/kernel/cpu/fp

Re: [PATCH] cpumask: add cpumask_any_and_but()

2017-02-06 Thread Peter Zijlstra
On Mon, Feb 06, 2017 at 11:38:52AM +, Mark Rutland wrote: > In some cases, it's useful to be able to select a random cpu from the > intersection of two masks, excluding a particular CPU. > > For example, in some systems an uncore PMU is shared by a subset of > CPUs, and management of this PMU

Re: [PATCH net-next v5 3/4] net: phy: Allow pre-declaration of MDIO devices

2017-02-06 Thread Andrew Lunn
> diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h > index 8a57f0b1242d..8850fcaf50db 100644 > --- a/include/linux/mod_devicetable.h > +++ b/include/linux/mod_devicetable.h > @@ -501,6 +501,7 @@ struct platform_device_id { > kernel_ulong_t driver_data; > }; >

[PATCH 36/89] sched/headers: Remove inclusion from

2017-02-06 Thread Ingo Molnar
... and fix up missing #includes in other places that relied on sched.h doing that for them. Note that even if the count where we need to add extra headers seems high, it's still a net win, because is included in over 2,200 files ... Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner C

Re: [GIT PULL] cputime: Convert core use of cputime_t to nsecs

2017-02-06 Thread Frederic Weisbecker
On Mon, Jan 30, 2017 at 05:46:43AM +0100, Frederic Weisbecker wrote: > Ingo, > > Please pull the cputime/nsecs-for-tip branch that can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > cputime/nsecs-for-tip Ping! :-)

Re: [PATCH v13 1/2] serial: exar: split out the exar code from 8250_pci

2017-02-06 Thread Jan Kiszka
On 2017-02-03 22:31, Sudip Mukherjee wrote: > On Friday 03 February 2017 02:02 PM, Jan Kiszka wrote: >> BTW, are you personally the copyright holder or your employer Codethink? >> Depends on your contractual situation, but the former is less common. > > Well, Codethink has nothing to do with this

[PATCH 38/89] sched/headers: Remove from

2017-02-06 Thread Ingo Molnar
... and fix up missing #includes in other places that relied on sched.h doing that for them. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/i2c.h | 1 + include/linux/sched.h

[PATCH 40/89] sched/headers: Move CONFIG_TASK_XACCT bits out of into

2017-02-06 Thread Ingo Molnar
The CONFIG_TASK_XACCT accounting inline functions are only used by fs/read_write.c, so move them into a separate header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- fs/read_write.c |

[PATCH 39/89] sched/headers: Remove various unrelated headers from

2017-02-06 Thread Ingo Molnar
Remove the following header inclusions from : #include #include #include #include #include #include #include #include #include #include #include #include #include #include

Re: [PATCH v2 6/7] gpiolib: include from gpiolib.h

2017-02-06 Thread Linus Walleij
On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski wrote: > We want pull gpiolib.h in from the gpio mockup driver, but gpiod_flags > is defined in consumer.h, so we need that too indirectly. > > Signed-off-by: Bartosz Golaszewski Can't you just add the include to the mockup driver...? Yours,

[PATCH 35/89] kasan, sched/headers: Remove from and uninline kasan_enable/disable_current()

2017-02-06 Thread Ingo Molnar
is a low level header that is included early in affected kernel headers. But it includes which complicates the cleanup of sched.h dependencies. But kasan.h has almost no need for sched.h: its only use of scheduler functionality is in two inline functions which are not used very frequently - so u

[PATCH 34/89] sched/core: Move include to kernel/sched/sched.h

2017-02-06 Thread Ingo Molnar
Recent header reorganizations unearthed this hidden dependency: kernel/sched/core.c:199:25: error: 'paravirt_steal_rq_enabled' undeclared (first use in this function) kernel/sched/core.c:200:11: error: implicit declaration of function 'paravirt_steal_clock' [-Werror=implicit-function-declara

[PATCH 30/89] sched/headers: Move the 'init_mm' declaration from to

2017-02-06 Thread Ingo Molnar
Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/mm_types.h | 2 ++ include/linux/sched.h| 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mm_types.

[PATCH 32/89] sched/numa: Split out of

2017-02-06 Thread Ingo Molnar
Split out the interface between the scheduler and the MM which deals with page fault driven NUMA balancing, into the new header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- fs/exec.c

[PATCH 29/89] sched/headers: Move more mm_struct related functionality from to

2017-02-06 Thread Ingo Molnar
Neither the mmap_layout nor the mm_update_next_owner() methods need to be in - move them to the more appropriate header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/alpha/kernel/osf_sys.c

[PATCH v1 1/3] clk: zte: add i2s clocks for zx296718

2017-02-06 Thread Baoyou Xie
The i2s related clock support is missing from the existing zx296718 clock driver. This patch adds it, so that the upstream ZX I2S driver can work out. Signed-off-by: Baoyou Xie --- drivers/clk/zte/clk-zx296718.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/zte/clk-zx296718

[PATCH 24/89] sched/headers: Remove #include from

2017-02-06 Thread Ingo Molnar
The header does not actually make use of any types or APIs defined in , so remove its inclusion. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 1 - 1 file changed, 1 deleti

[PATCH v1 2/3] dt: Document for the ZTE zx296718 I2S controller

2017-02-06 Thread Baoyou Xie
This patch documents the devicetree for the ZTE's zx296718 I2S audio controller. Signed-off-by: Baoyou Xie --- Documentation/devicetree/bindings/sound/zte,zx-i2s.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/zte,zx-i2s.txt

[PATCH 28/89] sched/cpufreq: Move the cpufreq interface to

2017-02-06 Thread Ingo Molnar
No need to have this in the generic header. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- drivers/cpufreq/cpufreq_governor.c | 1 - drivers/cpufreq/cpufreq_governor.h | 1 + drivers/cpufreq/cpuf

[PATCH 26/89] sched/headers: Remove unused include from

2017-02-06 Thread Ingo Molnar
It's not used by anything in anymore. This reduces the preprocessed size of and speeds up the build a bit. Also fix code that implicitly relied on headers included by . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off

[PATCH 27/89] sched/headers: Move 'struct pacct_struct' and 'struct cpu_itimer' form to

2017-02-06 Thread Ingo Molnar
These structures are actually part of 'struct signal', so move them to where they belong. This further decreases the size and complexity of . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- includ

[PATCH 22/89] sched/headers: Move 'struct user_struct' definition and APIs to the new header

2017-02-06 Thread Ingo Molnar
'struct user_struct' was added to sched.h historically, but it's actually entirely independent of task_struct and of scheduler details, so move it to its own header. Fix up .c files using those facilities. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-

[PATCH 19/89] sched/core: Move task->mm coredumping related defines and methods from to

2017-02-06 Thread Ingo Molnar
This further reduces the size and complexity of . These are the definitions and APIs that were moved: # MMF_*: fs/binfmt_elf.c fs/binfmt_elf_fdpic.c fs/exec.c fs/proc/base.c include/linux/khugepaged.h include/linux/ksm.h include/linux/sched/coredump.h kernel/events/uprobes.c k

[PATCH 20/89] sched/headers, signals: Separate out task_struct::signal and task_struct::sighand types and accessors into

2017-02-06 Thread Ingo Molnar
task_struct::signal and task_struct::sighand are pointers, which would normally make it straightforward to not define those types in sched.h. That is not so, because the types are accompanied by a myriad of APIs (macros and inline functions) that dereference them. Split the types and the APIs o

[PATCH 21/89] sched/headers: Remove unused 'task_can_switch_user()' prototype

2017-02-06 Thread Ingo Molnar
The function does not exist anymore. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/sched.h b/include/linux/

Re: [PATCH 1/5] of: introduce of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 4:32 AM, Philipp Zabel wrote: > Hi Rob, > > thanks for this clean-up series! I was not aware how far the duplication > has spread over time. > > On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: >> The OF graph API leaves too much of the graph walking to clients when >>

[PATCH 17/89] sched/idle: Remove tsk_is_polling()

2017-02-06 Thread Ingo Molnar
It's not used by anything. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched/idle.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/linux/sched/idle.h b/include/linu

[PATCH 06/89] sched/topology: Split out scheduler topology interfaces from into

2017-02-06 Thread Ingo Molnar
The vast majority of sched.h users does not require the topology types and interfaces, so split them out into a separate header, and include them in the .c files that require them. This reduces the size of linux/sched.h by ~6%. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linu

[PATCH 16/89] sched/idle: Move polling methods to

2017-02-06 Thread Ingo Molnar
Further reduce the size of by moving these APIs: tsk_is_polling() __current_set_polling() current_set_polling_and_test() __current_clr_polling() current_clr_polling_and_test() current_clr_polling() Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas

[PATCH 05/89] sched/topology: Split out scheduler topology code from core.c into topology.c

2017-02-06 Thread Ingo Molnar
Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- kernel/sched/Makefile |2 +- kernel/sched/core.c | 1659 +-- kernel/sched/sched.h| 23 +- k

[PATCH 15/89] sched/autogroup: Rename auto_group.[ch] to autogroup.[ch]

2017-02-06 Thread Ingo Molnar
The names are all 'autogroup', not 'auto_group' - so rename the kernel/sched/auto_group.[ch] to match the existing nomenclature. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- kernel/sched/Makefile

[PATCH 09/89] sched/wake_q: Move the wake-queue types and interfaces from sched.h into

2017-02-06 Thread Ingo Molnar
Note that this requires the basic task->wake_q type to be an opaque void *. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 52 +

[PATCH 07/89] sched/idle: Create for idle CPU related definitions

2017-02-06 Thread Ingo Molnar
Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- include/linux/sched.h | 7 --- include/linux/sched/idle.h | 11 +++ include/linux/sched/topology.h | 2 ++ 3 files changed, 1

[PATCH 11/89] sched/headers, delayacct: Move the 'struct task_delay_info' definition from to

2017-02-06 Thread Ingo Molnar
The 'struct task_delay_info' definition does not have to be in sched.h, because task_struct only has a pointer to it. So move it to to reduce the size of . As an additional improvement make the type defined but empty in the !CONFIG_TASK_DELAY_ACCT case - to eliminate the ugly #ifdef around the t

[PATCH 10/89] sched/clock: Introduce

2017-02-06 Thread Ingo Molnar
Move the sched_clock interfaces into a separate header file, to reduce the size of sched.h. Include in all files that made use of one of the sched_clock() related APIs. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by

[PATCH 01/89] sched/core: Clean up comments

2017-02-06 Thread Ingo Molnar
Refresh the comments in the core scheduler code: - Capitalize sentences consistently - Capitalize 'CPU' consistently - ... and other small details. Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- kernel/sched/core

Re: [PATCH] CIFS: use correct format string for size_t

2017-02-06 Thread Sachin Prabhu
On Thu, 2017-02-02 at 13:21 +0100, Arnd Bergmann wrote: > This warning is harmless as size_t is always as wide as 'unsigned > long': > > fs/cifs/smb2ops.c:2008:245: error: format '%lu' expects argument of > type 'long unsigned int', but argument 5 has type 'size_t {aka > unsigned int}' [-Werror=fo

[PATCH 12/89] sched/abi: Introduce

2017-02-06 Thread Ingo Molnar
Move ABI types (struct sched_attr, struct sched_param, etc.) into a new UAPI header, and use it from the code that needs it. This further reduces the size of . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Mo

[PATCH 14/89] sched/autogroup: Collect extern APIs into

2017-02-06 Thread Ingo Molnar
Further reduce the size of sched.h. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- fs/proc/base.c | 1 + include/linux/sched.h | 18 -- include/linux/sche

[PATCH 13/89] sched/loadavg: Move loadavg related definitions from to

2017-02-06 Thread Ingo Molnar
Create a new header for these bits, to reduce the size and complexity of . Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Thomas Gleixner Cc: Linus Torvalds Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- arch/m68k/kernel/time.c | 1 + arch/microblaze/ker

[PATCH 04/89] sched/core: Remove unnecessary #include headers

2017-02-06 Thread Ingo Molnar
Over the years sched/core.c accumulated over 50 #include lines, 40 of which are superfluous. (!) Removing them decreases the preprocessed .c file (.i) size noticeably: triton:~/tip> wc -l kernel/sched/core.i Before: 76387 kernel/sched/core.i After:75896 kernel/sched/core.i

[PATCH 00/89] Major reorganization of

2017-02-06 Thread Ingo Molnar
So 25+ years ago, in Linux-0.01, include/linux/sched.h was already the biggest core kernel header file: triton:~/linux-0.01/linux/include/linux> ls -lS total 44 -rw-r--r-- 1 mingo mingo 5686 Sep 17 1991 sched.h -rw-r--r-- 1 mingo mingo 4770 Sep 11 1991 fs.h -rw-r--r-- 1 mingo mingo 271

[PATCH 03/89] sched/rq_clock: Consolidate the ordering of the rq_clock methods

2017-02-06 Thread Ingo Molnar
update_rq_clock_task() and update_rq_clock() we unnecessarily spread across core.c, requiring an extra prototype line. Move them next to each other and in the proper order. Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --

[PATCH v1 3/3] ASoC: zx-i2s: support zx296718 SoC for ZTE's i2s controller driver

2017-02-06 Thread Baoyou Xie
This patch adds zx296718 SoC support for ZTE's i2s controller driver. Signed-off-by: Baoyou Xie --- sound/soc/zte/zx-i2s.c | 49 - 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/sound/soc/zte/zx-i2s.c b/sound/soc/zte/zx-i2s.c index

Re: [PATCH] platform/x86: intel_pmc_ipc: read s0ix residency API

2017-02-06 Thread kbuild test robot
-residency-API/20170206-213213 config: i386-randconfig-x007-201706 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/platform/x86/intel_pmc

[PATCH v3 2/3] usb: core: hcd: use ascii2utf16le() in ascii2desc()

2017-02-06 Thread Richard Leitner
As string.c now provides ascii2utf16le() use it in ascii2desc() for converting the string descriptor. Furthermore fix checkpatch.pl issues in ascii2desc(). Signed-off-by: Richard Leitner --- drivers/usb/core/hcd.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) d

[PATCH v3 0/3] usb: misc: add USB251xB/xBi Hi-Speed Hub Controller Driver

2017-02-06 Thread Richard Leitner
This patch series adds a driver for configuration of the Microchip USB251xB USB 2.0 hub controller series with USB 2.0 upstream connectivity, SMBus configuration interface and two to four USB 2.0 downstream ports. CHANGES v3: - move ascii2utf16le() to lib/string.c and also use it also for

[PATCH v3 1/3] lib/string: introduce ascii2utf16le() helper

2017-02-06 Thread Richard Leitner
For USB string descriptors we need to convert ASCII strings to UTF16-LE. Therefore make a simple helper function (based on ascii2desc from drivers/usb/core/hcd.c) for that purpose. Signed-off-by: Richard Leitner --- include/linux/string.h | 1 + lib/string.c | 26 +

[PATCH v3 3/3] usb: misc: add USB251xB/xBi Hi-Speed Hub Controller Driver

2017-02-06 Thread Richard Leitner
This patch adds a driver for configuration of the Microchip USB251xB/xBi USB 2.0 hub controller series with USB 2.0 upstream connectivity, SMBus configuration interface and two to four USB 2.0 downstream ports. Furthermore add myself as a maintainer for this driver. The datasheet can be found at

<    1   2   3   4   5   6   7   8   9   10   >