Re: [v2,3/6] powerpc: kill mfvtb()

From
Michael Ellerman <mpe@ellerman.id.au>
Date
2015-09-07 09:29:45
Also in
lkml
Reply to
Kevin Hao, 2015-08-24
On Mon, 2015-24-08 at 11:20:25 UTC, Kevin Hao wrote:
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().
I don't mind this change. But can you elaborate a bit on the issue with using
cpu_has_feature() in reg.h? Just so I can understand the problem.

I assume you ended up in a big mess of includes when you tried to include
jump_label.h from reg.h?

cheers
Thread (10 messages) 10 messages, 3 authors, last reply 2015-09-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help