Loading drivers/gpu/msm/kgsl_snapshot.c +2 −9 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -661,13 +661,7 @@ int kgsl_device_snapshot(struct kgsl_device *device, return -ENOMEM; } /* We need to have the GPU on for the entire snapshotting operation */ if (kgsl_active_count_get(device)) { KGSL_DRV_ERR(device, "snapshot: unable to turn on the GPU\n"); return -EINVAL; } BUG_ON(!kgsl_state_is_awake(device)); /* increment the hang count for good book keeping */ device->snapshot_faultcount++; Loading Loading @@ -736,7 +730,6 @@ int kgsl_device_snapshot(struct kgsl_device *device, */ queue_work(device->work_queue, &snapshot->work); done: kgsl_active_count_put(device); return ret; } EXPORT_SYMBOL(kgsl_device_snapshot); Loading Loading
drivers/gpu/msm/kgsl_snapshot.c +2 −9 Original line number Diff line number Diff line /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -661,13 +661,7 @@ int kgsl_device_snapshot(struct kgsl_device *device, return -ENOMEM; } /* We need to have the GPU on for the entire snapshotting operation */ if (kgsl_active_count_get(device)) { KGSL_DRV_ERR(device, "snapshot: unable to turn on the GPU\n"); return -EINVAL; } BUG_ON(!kgsl_state_is_awake(device)); /* increment the hang count for good book keeping */ device->snapshot_faultcount++; Loading Loading @@ -736,7 +730,6 @@ int kgsl_device_snapshot(struct kgsl_device *device, */ queue_work(device->work_queue, &snapshot->work); done: kgsl_active_count_put(device); return ret; } EXPORT_SYMBOL(kgsl_device_snapshot); Loading