Re: [PATCH v3 18/21] powerpc: Add option to use jump label for cpu_has_feature()

2016-07-28 Thread Nicholas Piggin
On Thu, 28 Jul 2016 00:18:14 +1000 Michael Ellerman wrote: > From: Kevin Hao > > We do binary patching of asm code using CPU features, which is a > one-time operation, done during early boot. However checks of CPU > features in C code are currently done at run time, even though the set > of CPU

[PATCH v3 18/21] powerpc: Add option to use jump label for cpu_has_feature()

2016-07-27 Thread Michael Ellerman
From: Kevin Hao We do binary patching of asm code using CPU features, which is a one-time operation, done during early boot. However checks of CPU features in C code are currently done at run time, even though the set of CPU features can never change after boot. We can optimise this by using jum