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:
Ananth Raghavan Subramanian
2018-12-05 12:08:33 -08:00
parent 6192115442
commit 561cffcbfa
3 changed files with 33 additions and 338 deletions

View File

@@ -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;