From f587d09cb66b24d441d9df08a9fbce5ab7af9102 Mon Sep 17 00:00:00 2001 From: Minsung Kim Date: Tue, 16 Apr 2013 21:52:50 +0900 Subject: [PATCH] cpufreq: interactive: fix uninitialized spinlock Add missing spinlock init Backtrace: [] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c) r6:00000032 r5:c0bd09ec r4:e6848000 r3:00000000 [] (dump_stack+0x0/0x1c) from [] (spin_dump+0x80/0x94) [] (spin_dump+0x0/0x94) from [] (spin_bug+0x2c/0x30) r5:c08f91fc r4:c0bd09ec [] (spin_bug+0x0/0x30) from [] (do_raw_spin_unlock+0x88/0xcc) r5:e547bac0 r4:c0bd09ec [] (do_raw_spin_unlock+0x0/0xcc) from [] (_raw_spin_unlock_irqrestore+0x14/0x40) r5:e547bac0 r4:60000013 [] (_raw_spin_unlock_irqrestore+0x0/0x40) from [] (store_above_hispeed_delay+0x6c/0x80) r4:c0b4cf78 r3:00000007 [] (store_above_hispeed_delay+0x0/0x80) from [] (kobj_attr_store+0x1c/0x28) r7:e68ff000 r6:00000032 r5:e58137c0 r4:e61cde80 [] (kobj_attr_store+0x0/0x28) from [] (sysfs_write_file+0x104/0x184) [] (sysfs_write_file+0x0/0x184) from [] (vfs_write+0xb0/0x140) [] (vfs_write+0x0/0x140) from [] (sys_write+0x44/0x70) r8:00000000 r7:00000004 r6:00000032 r5:bee43c90 r4:e5600300 [] (sys_write+0x0/0x70) from [] (ret_fast_syscall+0x0/0x30) r9:e6842000 r8:c000e584 r6:00000032 r5:bee43c90 r4:00000009 Change-Id: I80a1e0b3fecb24adba501ff44f568479deeff7fa Signed-off-by: Minsung Kim --- drivers/cpufreq/cpufreq_interactive.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index 9dd4d38f2c9e..baf8740f1677 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -1148,6 +1148,7 @@ static int __init cpufreq_interactive_init(void) spin_lock_init(&target_loads_lock); spin_lock_init(&speedchange_cpumask_lock); + spin_lock_init(&above_hispeed_delay_lock); mutex_init(&gov_lock); speedchange_task = kthread_create(cpufreq_interactive_speedchange_task, NULL, -- 2.34.1