Skip to content

Commit

Permalink
kernel/cpu: fix spelling mistake of cpuhp_thread_run()
Browse files Browse the repository at this point in the history
According to the name of cpuhp_should_run(), cpuhp_thread_fun() should
be a spelling mistake.

Signed-off-by: Pingfan Liu <kernelfans@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Vincent Donnefort <vincent.donnefort@arm.com>
Cc: Valentin Schneider <valentin.schneider@arm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Yuan ZhaoXiong <yuanzhaoxiong@baidu.com>
To: linux-kernel@vger.kernel.org
  • Loading branch information
liupingfan authored and intel-lab-lkp committed Aug 24, 2021
1 parent 349a2d5 commit 7747d6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/cpu.c
Expand Up @@ -521,7 +521,7 @@ static void __cpuhp_kick_ap(struct cpuhp_cpu_state *st)
st->result = 0;
/*
* Make sure the above stores are visible before should_run becomes
* true. Paired with the mb() above in cpuhp_thread_fun()
* true. Paired with the mb() above in cpuhp_thread_run()
*/
smp_mb();
st->should_run = true;
Expand Down Expand Up @@ -723,7 +723,7 @@ static int cpuhp_should_run(unsigned int cpu)
*
* When complete or on error, should_run is cleared and the completion is fired.
*/
static void cpuhp_thread_fun(unsigned int cpu)
static void cpuhp_thread_run(unsigned int cpu)
{
struct cpuhp_cpu_state *st = this_cpu_ptr(&cpuhp_state);
bool bringup = st->bringup;
Expand Down Expand Up @@ -863,7 +863,7 @@ static struct smp_hotplug_thread cpuhp_threads = {
.store = &cpuhp_state.thread,
.create = &cpuhp_create,
.thread_should_run = cpuhp_should_run,
.thread_fn = cpuhp_thread_fun,
.thread_fn = cpuhp_thread_run,
.thread_comm = "cpuhp/%u",
.selfparking = true,
};
Expand Down

0 comments on commit 7747d6c

Please sign in to comment.