Loading drivers/soc/qcom/rimps_memlat.c +16 −5 Original line number Diff line number Diff line Loading @@ -207,7 +207,12 @@ static ssize_t store_##name(struct kobject *kobj, \ unsigned int val; \ struct memlat_mon *mon = to_memlat_mon(kobj); \ struct memlat_cpu_grp *cpu_grp = mon->cpu_grp; \ struct scmi_memlat_vendor_ops *ops = cpu_grp->handle->memlat_ops; \ struct scmi_memlat_vendor_ops *ops = NULL; \ if (cpu_grp && cpu_grp->handle && \ cpu_grp->handle->memlat_ops) \ ops = cpu_grp->handle->memlat_ops; \ else \ return -ENODEV; \ ret = kstrtouint(buf, 10, &val); \ if (ret < 0) \ return ret; \ Loading Loading @@ -248,11 +253,14 @@ static ssize_t store_min_freq(struct kobject *kobj, unsigned int val; struct memlat_mon *mon = to_memlat_mon(kobj); struct memlat_cpu_grp *cpu_grp = mon->cpu_grp; struct scmi_memlat_vendor_ops *ops = cpu_grp->handle->memlat_ops; struct scmi_memlat_vendor_ops *ops = NULL; unsigned int min_freq; unsigned int max_freq; if (!ops) if (cpu_grp && cpu_grp->handle && cpu_grp->handle->memlat_ops) ops = cpu_grp->handle->memlat_ops; else return -ENODEV; if (mon->mon_type == L3_MEMLAT) { Loading Loading @@ -290,11 +298,14 @@ static ssize_t store_max_freq(struct kobject *kobj, unsigned int val; struct memlat_mon *mon = to_memlat_mon(kobj); struct memlat_cpu_grp *cpu_grp = mon->cpu_grp; struct scmi_memlat_vendor_ops *ops = cpu_grp->handle->memlat_ops; struct scmi_memlat_vendor_ops *ops = NULL; unsigned int min_freq; unsigned int max_freq; if (!ops) if (cpu_grp && cpu_grp->handle && cpu_grp->handle->memlat_ops) ops = cpu_grp->handle->memlat_ops; else return -ENODEV; if (mon->mon_type == L3_MEMLAT) { Loading Loading
drivers/soc/qcom/rimps_memlat.c +16 −5 Original line number Diff line number Diff line Loading @@ -207,7 +207,12 @@ static ssize_t store_##name(struct kobject *kobj, \ unsigned int val; \ struct memlat_mon *mon = to_memlat_mon(kobj); \ struct memlat_cpu_grp *cpu_grp = mon->cpu_grp; \ struct scmi_memlat_vendor_ops *ops = cpu_grp->handle->memlat_ops; \ struct scmi_memlat_vendor_ops *ops = NULL; \ if (cpu_grp && cpu_grp->handle && \ cpu_grp->handle->memlat_ops) \ ops = cpu_grp->handle->memlat_ops; \ else \ return -ENODEV; \ ret = kstrtouint(buf, 10, &val); \ if (ret < 0) \ return ret; \ Loading Loading @@ -248,11 +253,14 @@ static ssize_t store_min_freq(struct kobject *kobj, unsigned int val; struct memlat_mon *mon = to_memlat_mon(kobj); struct memlat_cpu_grp *cpu_grp = mon->cpu_grp; struct scmi_memlat_vendor_ops *ops = cpu_grp->handle->memlat_ops; struct scmi_memlat_vendor_ops *ops = NULL; unsigned int min_freq; unsigned int max_freq; if (!ops) if (cpu_grp && cpu_grp->handle && cpu_grp->handle->memlat_ops) ops = cpu_grp->handle->memlat_ops; else return -ENODEV; if (mon->mon_type == L3_MEMLAT) { Loading Loading @@ -290,11 +298,14 @@ static ssize_t store_max_freq(struct kobject *kobj, unsigned int val; struct memlat_mon *mon = to_memlat_mon(kobj); struct memlat_cpu_grp *cpu_grp = mon->cpu_grp; struct scmi_memlat_vendor_ops *ops = cpu_grp->handle->memlat_ops; struct scmi_memlat_vendor_ops *ops = NULL; unsigned int min_freq; unsigned int max_freq; if (!ops) if (cpu_grp && cpu_grp->handle && cpu_grp->handle->memlat_ops) ops = cpu_grp->handle->memlat_ops; else return -ENODEV; if (mon->mon_type == L3_MEMLAT) { Loading