powerpc/32: use patch_site_addr() in machine_init()
Use patch_site_addr() instead of hardcoding the address calculation in machine_init() Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
36b08b431e
commit
04b0a72f28
|
@ -101,8 +101,7 @@ notrace unsigned long __init early_init(unsigned long dt_ptr)
|
|||
*/
|
||||
notrace void __init machine_init(u64 dt_ptr)
|
||||
{
|
||||
unsigned int *addr = (unsigned int *)((unsigned long)&patch__memset_nocache +
|
||||
patch__memset_nocache);
|
||||
unsigned int *addr = (unsigned int *)patch_site_addr(&patch__memset_nocache);
|
||||
unsigned long insn;
|
||||
|
||||
/* Configure static keys first, now that we're relocated. */
|
||||
|
|
Loading…
Reference in New Issue