[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200526102511.GA5681@linux.vnet.ibm.com>
Date: Tue, 26 May 2020 15:55:11 +0530
From: Srikar Dronamraju <srikar@...ux.vnet.ibm.com>
To: john mathew <john.mathew@...kie.com>
Cc: linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
corbet@....net, mingo@...hat.com, peterz@...radead.org,
juri.lelli@...hat.com, vincent.guittot@...aro.org,
dietmar.eggemann@....com, rostedt@...dmis.org, bsegall@...gle.com,
mgorman@...e.de, bristot@...hat.com, tsbogend@...ha.franken.de,
lukas.bulwahn@...il.com, x86@...nel.org,
linux-mips@...r.kernel.org, tglx@...utronix.de,
mostafa.chamanara@...il.com, willy@...radead.org,
valentin.schneider@....com, rdunlap@...radead.org,
Mostafa Chamanara <mostafa.chamanara@...emark.com>,
Oleg Tsymbal <oleg.tsymbal@...kie.com>
Subject: Re: [RFC PATCH v5 3/3] docs: scheduler: Add introduction to
scheduler context-switch
* john mathew <john.mathew@...kie.com> [2020-05-14 12:26:37]:
> +
> +Context Switching
> +-----------------
> +
> +Context switching, the switching from a running task to another,
> +is done by the context_switch() function defined in kernel/sched.c.
context_switch is defined in kernel/sched/core.c
> +It is called by __schedule() when a new process has been selected to run.
> +The execution flow is as follows:
> +
> +
> + For a kernel task switching to a user task, switch_mm_irqs_off()
> + replaces the address space of prev kernel task with the next from the user
> + task. Same as for exiting process in this case, the context_switch()
Did you mean existing instead of exiting?
> + function saves the pointer to the memory descriptor used by prev in the
> + runqueue???s prev_mm field and resets prev task active address space.
> +
--
Thanks and Regards
Srikar Dronamraju
Powered by blists - more mailing lists