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.
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
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
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,
Remove the following header inclusions from :
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
... 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
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 |
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
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! :-)
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
> 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;
> };
>
... 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
... 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
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
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|
... 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 |
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
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
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(-)
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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
* 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
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
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
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()
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
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
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
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
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
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 ++
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
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
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
... 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
... 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
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
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
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
'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
These two functions are task management related, not core scheduler APIs.
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 | 4
include/linux/sched/task.h | 3 +++
kern
It's used only by a single (rarely used) inline function (task_node(p)),
which we can move to .
( Add , because we rely on that. )
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
sched_exec() better fits into the task lifetime APIs than into the core
scheduler
APIs.
This reduces the size of a bit.
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 |
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
trap_init() and cpu_init() belong into , sched_init*() into
.
... 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/ia64/kernel/setup.c | 1 +
arch/m32
It's not used by any of the scheduler methods, but
needs it to pick up STACK_END_MAGIC.
Update files that depended on the magic.h inclusion.
Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Thomas Gleixner
Cc: Linus Torvalds
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar
---
drivers/
In our quest to simplify 's header dependencies, remove
the inclusion from - which does
not appear to be necessary, as hrtimer.h does not use waitqueues.
Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Thomas Gleixner
Cc: Linus Torvalds
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar
Also 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
---
drivers/dma/dmatest.c | 1 +
drivers/gpu/drm/etnaviv/etnaviv_gem.c | 1 +
drivers/infiniband
In the next couple of patches we are going to remove various headers
from sched.h and other headers that sched.h includes.
To make those patches build cleanly prepare the scene by adding
dependencies to various files that learned to rely on those
to-be-removed dependencies.
These changes all make
On Mon, Feb 06, 2017 at 01:29:28PM +0100, Ingo Molnar wrote:
> > +/* Future-safe accessor for struct task_struct's cpus_allowed. */
> > +static inline const struct cpumask *tsk_cpus_allowed(struct task_struct *p)
> > +{
> > + if (__migrate_disabled(p))
> > + return cpumask_of(ta
So we want to simplify 's header dependencies, but one
roadblock of that is 's inclusion of sysctl.h,
which brings in other, problematic headers.
Note that timer.h's inclusion of sysctl.h can be avoided if we
pre-declare ctl_table - so do that.
Also update usage sites that depended on the inclusi
We want to simplify 's header dependencies, but one
roadblock to that is 's inclusion of pm.h,
which brings in other, problematic headers.
Remove it, as it appears to be entirely spurious, apic.h does not
actually make use of any PM facilities.
Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Thomas G
So rcupdate.h is a pretty complex header, in particular it includes
which includes - creating a
dependency that includes in ,
which prevents the isolation of from the derived
header.
Solve part of the problem by decoupling rcupdate.h from completions:
this can be done by separating out the rc
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 Golaszewski
>
> This is obviously exactly how we should do this.
>
>
Unclutter some more.
Also move the CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH condition inside the
structure body definition, to remove a pair of #ifdefs from sched.h.
Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Thomas Gleixner
Cc: Linus Torvalds
Cc: linux-kernel@vger.kernel.org
Signed-off-by: I
So the original intention of tsk_cpus_allowed() was to 'future-proof'
the field - but it's pretty ineffectual at that, because half of
the code uses ->cpus_allowed directly ...
Also, the wrapper makes the code longer than the original expression!
So just get rid of it. This also shrinks a bit.
Make each header self-sufficient, so that it can be built successfully
both in an allnoconfig and allyesconfig kernel.
Also standardize the naming of their header guards.
Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Thomas Gleixner
Cc: Linus Torvalds
Cc: linux-kernel@vger.kernel.org
Signed-off-b
Move the update_process_times() and xtime_update() prototypes
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/sched.h | 1 -
include/linux/time.h| 2 --
include/linux
We don't actually need the full rculist.h header anymore, include
the smaller rcupdate.h header instead.
Update code that relied on the implicit header inclusion.
Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Thomas Gleixner
Cc: Linus Torvalds
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo
threadgroup_change_begin()/end() is a pointless wrapper around
cgroup_threadgroup_change_begin()/end(), minus a might_sleep()
in the !CONFIG_CGROUPS=y case.
Remove the wrappery, move the might_sleep() (the down_read()
already has a might_sleep() check).
This debloats a bit and simplifies this AP
Move the following task->mm helper APIs into a new header file,
, to further reduce the size and complexity
of :
# mm_alloc():
arch/arm/mach-rpc/ecard.c
fs/exec.c
include/linux/sched/mm.h
kernel/fork.c
# __mmdrop():
arch/arc/include/asm/mmu_context.h
include/linux/sched/mm.h
ker
The length of TASK_STATE_TO_CHAR_STR was still checked using the old
link-time manual error method - convert it to BUILD_BUG_ON(). This
has a couple of advantages:
- it's more obvious what's going on
- it reduces the size and complexity of
- BUILD_BUG_ON() will fail during compilation, with
These methods don't belong into , they are neither directly
related to task_struct or are scheduler functionality.
Put them next to the other watchdog methods in .
( Arguably that header's name is a misnomer, and this patch makes it
more so - but it should be renamed in another patch. )
Cc: Pe
Only a small fraction of sched.h users actually utilizes these defines,
and they are not scheduler functionality in any case, so move them
into their separate header.
Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Thomas Gleixner
Cc: Linus Torvalds
Cc: linux-kernel@vger.kernel.org
Signed-off-by: In
The in_vfork() function deals with task->mm, so it better belongs
into .
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| 26 --
include/linux/sched/
include/linux/delayacct.h relies on 'struct taskstats' but does
not include the header that defines it.
This worked so far because files that included
also happened to include other headers that included
uapi/linux/taskstats.h.
Fix it.
Cc: Mike Galbraith
Cc: Peter Zijlstra
Cc: Thomas Gleixner
Collect the various scheduler and task state debugging APIs scattered
around into the new header.
In particular the show_regs() and show_stack() prototype affects many files,
update them.
Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Thomas Gleixner
Cc: Linus Torvalds
Cc: linux-kernel@vger.kern
is still needed - but we at least don't have MM
headers in sched.h anymore, except .
Fix dependencies in files that depended on this include.
Cc: Peter Zijlstra
Cc: Mike Galbraith
Cc: Thomas Gleixner
Cc: Linus Torvalds
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar
---
include
Split the CPU hotplug scheduler APIs out of the common header
and update the 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/arm/kernel/smp.c| 1 +
arch/arm
No need to clutter with this rarely used prototype.
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/sched/idle.h | 2 ++
kernel/smp.c |
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 Golaszewski
This is obviously exactly how we should do this.
However since it needs the devm* helpers from the irq
subs
On Mon, 6 Feb 2017 13:16:52 +0100
Petr Mladek wrote:
> > > just in case, the patch (which I prefer to be ignored)
> >
> > let's keep printk_safe_flush_line().
>
> I do not have strong opinion but I would slightly prefer
> to keep the helper function. The use of printk_deferred()
> is a bi
On Fri, Feb 03, 2017 at 10:59:06AM +0100, Maxime Ripard wrote:
> Signed-off-by: Maxime Ripard
> ---
> drivers/gpu/drm/panel/Kconfig | 4 +-
> drivers/gpu/drm/panel/Makefile | 1 +-
> drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 435 ++-
> 3
On Mon, Feb 6, 2017 at 1:10 PM, Bartosz Golaszewski
wrote:
> Add a devres flavor of __devm_irq_alloc_descs() and corresponding
> helper macros.
>
> Signed-off-by: Bartosz Golaszewski
Oh that was interesting. I will leave the IRQ subsystems specific
review to Thomas and Marc, but I think you nee
On Mon 06-02-17 18:39:03, vinayak menon wrote:
> On Mon, Feb 6, 2017 at 6:10 PM, Michal Hocko wrote:
> > On Mon 06-02-17 17:54:10, Vinayak Menon wrote:
> > [...]
> >> diff --git a/mm/vmpressure.c b/mm/vmpressure.c
> >> index 149fdf6..3281b34 100644
> >> --- a/mm/vmpressure.c
> >> +++ b/mm/vmpressu
On 6 February 2017 at 09:33, Wanpeng Li wrote:
> Hi Vincent,
> 2017-02-06 16:07 GMT+08:00 Vincent Guittot :
>> Hi Wanpeng
>>
>> On 5 February 2017 at 10:57, Wanpeng Li wrote:
>>> From: Wanpeng Li
>>>
>>> The commit:
>>> c5afb6a87f2 ("sched/fair: Fix nohz.next_balance update")
>>>
>>> intends t
On Mon, Feb 06, 2017 at 02:18:32PM +0100, Robert Richter wrote:
> Isn't there the danger the previous watchdog state is never restored
> if for some reason perf got killed? So maybe have some other task
> running that restores it once perf is gone.
Currently, I'm restoring it in the atexit() sigha
701 - 800 of 1064 matches
Mail list logo