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
'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
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
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
... 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
... 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
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
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
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
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 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
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
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
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
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
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
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
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
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
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 |
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
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
... 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
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
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 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
... 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 |
Remove the following header inclusions from :
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
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,
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
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
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.
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
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
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
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
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
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
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
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
'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-
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
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
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/
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
>>
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
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
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
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
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
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
+
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
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
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
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
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
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
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
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
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
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
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
--
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
-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
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
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
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 +
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
301 - 400 of 1064 matches
Mail list logo