Skip to content

Commit

Permalink
gpu: msm: always initialize the wake_lock
Browse files Browse the repository at this point in the history
The wake_lock is used in all SoC types. Not initializing the wake_lock
will cause a NULL pointer.

Signed-off-by: marc1706 <admin@m-a-styles.de>
  • Loading branch information
marc1706 committed Feb 5, 2013
1 parent c15156c commit cf787c1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/gpu/msm/kgsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2374,9 +2374,18 @@ kgsl_register_device(struct kgsl_device *device)
if (ret != 0)
goto err_close_mmu;

/*
* The wake lock is always destroyed and will be used by pwrctrl.
* Therefore it needs to be initialized for every SoC type
* by Marc Alexander (c) 2013
*/
#if 0
if (cpu_is_msm8x60())
wake_lock_init(&device->idle_wakelock,
WAKE_LOCK_IDLE, device->name);
#else
wake_lock_init(&device->idle_wakelock, WAKE_LOCK_IDLE, device->name);
#endif
/*kgsl_pm_qos_req = pm_qos_add_request(PM_QOS_CPU_DMA_LATENCY,
PM_QOS_DEFAULT_VALUE);*/

Expand Down

0 comments on commit cf787c1

Please sign in to comment.