|
@@ -461,7 +461,7 @@ static ssize_t store_cache_disable(struct _cpuid4_info *this_leaf,
|
|
|
|
|
|
|
|
cpu = cpumask_first(to_cpumask(this_leaf->shared_cpu_map));
|
|
cpu = cpumask_first(to_cpumask(this_leaf->shared_cpu_map));
|
|
|
|
|
|
|
|
- if (strict_strtoul(buf, 10, &val) < 0)
|
|
|
|
|
|
|
+ if (kstrtoul(buf, 10, &val) < 0)
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
err = amd_set_l3_disable_slot(this_leaf->base.nb, cpu, slot, val);
|
|
err = amd_set_l3_disable_slot(this_leaf->base.nb, cpu, slot, val);
|
|
@@ -511,7 +511,7 @@ store_subcaches(struct _cpuid4_info *this_leaf, const char *buf, size_t count,
|
|
|
if (!this_leaf->base.nb || !amd_nb_has_feature(AMD_NB_L3_PARTITIONING))
|
|
if (!this_leaf->base.nb || !amd_nb_has_feature(AMD_NB_L3_PARTITIONING))
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
- if (strict_strtoul(buf, 16, &val) < 0)
|
|
|
|
|
|
|
+ if (kstrtoul(buf, 16, &val) < 0)
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
if (amd_set_subcaches(cpu, val))
|
|
if (amd_set_subcaches(cpu, val))
|