]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Remove mfvtb()
authorKevin Hao <haokexin@gmail.com>
Sat, 23 Jul 2016 09:12:39 +0000 (14:42 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:15:03 +0000 (11:15 +1000)
commit22b98fff9c93a37154918eda8a23d6aefa855719
tree9a9e072ab1e8b9fbdb37880d0c1be51bb585182c
parentc52f0f22dfdba1983964a50e28c1747fc691ebe4
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>
arch/powerpc/include/asm/reg.h
arch/powerpc/include/asm/time.h