}
#endif
if (error) {
- _E("[CPU-SCHED] Failed to set policy and priority");
+ _E("[CPU-SCHED] Failed to set policy and priority with error = %s", strerror(errno));
return RESOURCED_ERROR_FAIL;
}
int ret = RESOURCED_ERROR_NONE;
int byte;
struct cpu_boosting_input *input;
- cpu_boosting_output_t output;
+// cpu_boosting_output_t output;
input = cpu_boosting_new_request();
if (input == NULL) {
}
}
- if (input->client_input.command == CPU_BOOSTING_COMMAND_SET ||
+/* if (input->client_input.command == CPU_BOOSTING_COMMAND_SET ||
input->client_input.command == CPU_BOOSTING_COMMAND_CLEAR) {
output.success = true;
output.level.tid_level = NULL;
output.level.tid_count = 0;
cpu_boosting_send_reply(sock, &output);
- }
+ }*/
- input->sock = sock; /* For a reply */
+ if (input->client_input.command == CPU_BOOSTING_COMMAND_GET)
+ input->sock = sock; /* For a reply */
CPU_BOOSTING_ENQUEUE_REQUEST(input);
return RESOURCED_ERROR_NONE;
static void cpu_boosting_get(struct cpu_boosting_input *input,
cpu_boosting_output_t *output)
{
+
+ cpu_boosting_send_reply(input->sock, output);
}
/* Cpu boosting thread's main code */