From: Shilpa P
Don't crash the Kernel for driver errors
Signed-off-by: Shilpa P
---
drivers/staging/media/bcm2048/radio-bcm2048.c | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c
b/drivers/staging/media/bc
003] [c07fe3127c10] [c0aced34] store+0xb4/0x110
[ 906.770071] [c07fe3127c60] [c040a8a4] sysfs_kf_write+0x94/0xc0
[ 906.770139] [c07fe3127ca0] [c04094a8]
kernfs_fop_write+0x188/0x1f0
[ 906.770221] [c07fe3127cf0] [c0347b8c] __vfs_write+0x6c/0x180
[ 906.770290] [c07fe3127d90] [c03490a0] vfs_write+0xc0/0x200
[ 906.770358] [c07fe3127de0] [c034a3cc] SyS_write+0x6c/0x110
[ 906.770426] [c07fe3127e30] [c000926c] system_call+0x38/0xd0
Thanks and Regards,
Shilpa
ediction
for the 'rebooting' test. Having unlikely to cover both 'rebooting' and the
second
clause we can avoid the branch miss prediction for the second clause. This is
advantageous for the code path
powernv_cpufreq_target_index(policy,nominal_index)
which will be invoked by the
This patch ensures the cpus to kexec/reboot at nominal frequency.
Nominal frequency is the highest cpu frequency on PowerPC at
which the cores can run without getting throttled.
If the host kernel had set the cpus to a low pstate and then it
kexecs/reboots to a cpufreq disabled kernel it would cau
;
> Have you placed the unlikely only around 'rebooting' intentionally or
> should it cover whole if statement?
>
Yes unlikely() should cover the whole if statement. Thank you for pointing it
out.
I have corrected my mistake in the below patch.
Thanks and regards,
Shilpa
This
5 matches
Mail list logo