summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/cpu_ops.c
diff options
context:
space:
mode:
authorGavin Shan <gshan@redhat.com>2020-03-19 10:01:43 +1100
committerCatalin Marinas <catalin.marinas@arm.com>2020-03-24 17:24:13 +0000
commit6885fb129be30c627eb2f5b1498dba498ff6c037 (patch)
tree4ca91677cae07feac873a0ca48084938fa77b9db /arch/arm64/kernel/cpu_ops.c
parent7fec52bf8095a95d7f698e9a165d4cace514a204 (diff)
downloadlinux-stable-6885fb129be30c627eb2f5b1498dba498ff6c037.tar.gz
linux-stable-6885fb129be30c627eb2f5b1498dba498ff6c037.tar.bz2
linux-stable-6885fb129be30c627eb2f5b1498dba498ff6c037.zip
arm64: Rename cpu_read_ops() to init_cpu_ops()
This renames cpu_read_ops() to init_cpu_ops() as the function is only called in initialization phase. Also, we will introduce get_cpu_ops() in the subsequent patches, to retireve the CPU operation by the given CPU index. The usage of cpu_read_ops() and get_cpu_ops() are difficult to be distinguished from their names. Signed-off-by: Gavin Shan <gshan@redhat.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/cpu_ops.c')
-rw-r--r--arch/arm64/kernel/cpu_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/cpu_ops.c b/arch/arm64/kernel/cpu_ops.c
index 2082cfb1be86..a6c3c816b618 100644
--- a/arch/arm64/kernel/cpu_ops.c
+++ b/arch/arm64/kernel/cpu_ops.c
@@ -96,7 +96,7 @@ static const char *__init cpu_read_enable_method(int cpu)
/*
* Read a cpu's enable method and record it in cpu_ops.
*/
-int __init cpu_read_ops(int cpu)
+int __init init_cpu_ops(int cpu)
{
const char *enable_method = cpu_read_enable_method(cpu);