lib/smp_processor_id: fix imbalanced instrumentation_end() call
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 22 Jun 2022 05:46:31 +0000 (14:46 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:08 +0000 (14:24 +0200)
commitf28e4d21483969d8f13625d6604a46d3b51c6d9e
tree548f5c2cfa96fd58ad96fd7468b77551b9f4a23a
parent74824db8b2fa775ba9469bc39d214eb7bb98ce75
lib/smp_processor_id: fix imbalanced instrumentation_end() call

[ Upstream commit bd27acaac24e4b252ee28dddcabaee80456d0faf ]

Currently instrumentation_end() won't be called if printk_ratelimit()
returned false.

Link: https://lkml.kernel.org/r/a636d8e0-ad32-5888-acac-671f7f553bb3@I-love.SAKURA.ne.jp
Fixes: 126f21f0e8d46e2c ("lib/smp_processor_id: Move it into noinstr section")
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Alexandre Chartre <alexandre.chartre@oracle.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
lib/smp_processor_id.c