limit_min_cpu = limit_max_cpu;
ret = pass_hal_set_online_min_num(res, limit_min_cpu);
- if (ret == -EPERM || ret == -ENODEV) {
+ if (ret == -EPERM || ret == -ENOTSUP) {
/*
* If -EPERM, function is not supported according to
- * h/w resource type. And if -ENODEV, function is not
+ * h/w resource type. And if -ENOTSUP, function is not
* implemented on HAL package. It means that this
* function is not necessary on two error case
* when calling the HAL functions.
}
ret = pass_hal_set_online_max_num(res, limit_max_cpu);
- if (ret == -EPERM || ret == -ENODEV) {
+ if (ret == -EPERM || ret == -ENOTSUP) {
;
} else if (ret < 0) {
_W("failed to set the maximum number of cpu(%d) of %s",
ret = pass_hal_set_online_state(res,
res->config_data.cpu + i,
(i < limit_min_cpu) ? 1 : 0);
- if (ret == -EPERM || ret == -ENODEV) {
+ if (ret == -EPERM || ret == -ENOTSUP) {
;
} else if (ret < 0) {
_W("failed to turn %s of cpu%d of %s",