summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup-common.c
diff options
context:
space:
mode:
authorKevin Hao2016-07-23 11:12:39 +0200
committerMichael Ellerman2016-08-01 03:15:03 +0200
commit905259e33d0ca0ee8e0d55783c3eef3402df81b7 (patch)
tree9a9e072ab1e8b9fbdb37880d0c1be51bb585182c /arch/powerpc/kernel/setup-common.c
parentpowerpc: Call jump_label_init() in apply_feature_fixups() (diff)
downloadkernel-qcow2-linux-905259e33d0ca0ee8e0d55783c3eef3402df81b7.tar.gz
kernel-qcow2-linux-905259e33d0ca0ee8e0d55783c3eef3402df81b7.tar.xz
kernel-qcow2-linux-905259e33d0ca0ee8e0d55783c3eef3402df81b7.zip
powerpc: Remove mfvtb()
This function is only used by get_vtb(). They are almost the same except the reading from the real register. Move the mfspr() to get_vtb() and kill the function mfvtb(). With this, we can eliminate the use of cpu_has_feature() in very core header file like reg.h. This is a preparation for the use of jump label for cpu_has_feature(). Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
0 files changed, 0 insertions, 0 deletions