[email protected]>, Frederic Weisbecker <[email protected]>, Len Brown <[email protected]>, [email protected], Sascha Hauer <[email protected]>, Vasily Gorbik <[email protected]>, linux-arm-msm <[email protected]>, [email protected], linux-m68k <[email protected]>, Stafford Horne <[email protected]>, Linux ARM <[email protected]>, Chris Zankel <[email protected]>, Stephen Boyd <[email protected]>, [email protected], Daniel Bristot de Oliveira <[email protected]>, Alexander Shishkin <[email protected]>, Lorenzo Pieralisi <[email protected]>, Rasmus Villemoes <[email protected]>, Joel Fernandes <[email protected]>, Will Deacon <[email protected]>, Boris Ostrovsky <[email protected]>, Kevin Hilman <[email protected]>, [email protected], [email protected], [email protected], Mel Gorman <[email protected]>, Jacob Pan <[email protected] l.com>, Arnd Bergmann <[email protected]>, [email protected], [email protected], linux-clk <[email protected]>, Josh Triplett <[email protected]>, Steven Rostedt <[email protected]>, [email protected], Borislav Petkov <[email protected]>, [email protected], Thomas Bogendoerfer <[email protected]>, Parisc List <[email protected]>, Sudeep Holla <[email protected]>, Shawn Guo <[email protected]>, David Miller <[email protected]>, Rich Felker <[email protected]>, Tony Lindgren <[email protected]>, [email protected], Bjorn Andersson <[email protected]>, "H. Peter Anvin" <[email protected]>, [email protected], [email protected], linux-riscv <[email protected]>, [email protected], [email protected], Yury Norov <[email protected]>, Richard Weinberger <[email protected]>, the arch/x86 maintainers <[email protected]>, Russell King - ARM Linux <[email protected]>, Ingo Molnar <[email protected]>, Al bert Ou <[email protected]>, "Paul E. McKenney" < [email protected]>, Heiko Carstens <[email protected]>, [email protected], [email protected], Paul Walmsley <[email protected]>, linux-tegra <[email protected]>, [email protected], Andy Shevchenko <[email protected]>, [email protected], Juergen Gross <[email protected]>, Michal Simek <[email protected]>, "open list:BROADCOM NVRAM DRIVER" <[email protected]>, Palmer Dabbelt <[email protected]>, Anup Patel <[email protected]>, [email protected], Johannes Berg <[email protected]>, linuxppc-dev <[email protected]> Errors-To: [email protected] Sender: "Linuxppc-dev" <[email protected]>
On Wed, Jun 8, 2022 at 4:46 PM Peter Zijlstra <[email protected]> wrote: > > The __cpuidle functions will become a noinstr class, as such they need > explicit annotations. > > Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Rafael J. Wysocki <[email protected]> > --- > drivers/cpuidle/poll_state.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > --- a/drivers/cpuidle/poll_state.c > +++ b/drivers/cpuidle/poll_state.c > @@ -13,7 +13,10 @@ > static int __cpuidle poll_idle(struct cpuidle_device *dev, > struct cpuidle_driver *drv, int index) > { > - u64 time_start = local_clock(); > + u64 time_start; > + > + instrumentation_begin(); > + time_start = local_clock(); > > dev->poll_time_limit = false; > > @@ -39,6 +42,7 @@ static int __cpuidle poll_idle(struct cp > raw_local_irq_disable(); > > current_clr_polling(); > + instrumentation_end(); > > return index; > } > >
