Clean up code and add generic hint handling
Removed unused code and added generic hint handling to power.c file, does not need to be device specific anymore. Change-Id: I0d4e2a73de0ce4d3735314d2e49ba58c23eb313c
This commit is contained in:
4
utils.c
4
utils.c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2013,2015-2017, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2013,2015-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
@@ -255,7 +255,7 @@ int perf_hint_enable(int hint_id , int duration)
|
||||
if (perf_hint) {
|
||||
lock_handle = perf_hint(hint_id, NULL, duration, -1);
|
||||
if (lock_handle == -1)
|
||||
ALOGE("Failed to acquire lock.");
|
||||
ALOGE("Failed to acquire lock for hint_id: %X.", hint_id);
|
||||
}
|
||||
}
|
||||
return lock_handle;
|
||||
|
||||
Reference in New Issue
Block a user