|
@@ -412,7 +412,8 @@ int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write,
|
|
|
if (ret || !write)
|
|
|
return ret;
|
|
|
|
|
|
- if (sysctl_perf_cpu_time_max_percent == 100) {
|
|
|
+ if (sysctl_perf_cpu_time_max_percent == 100 ||
|
|
|
+ sysctl_perf_cpu_time_max_percent == 0) {
|
|
|
printk(KERN_WARNING
|
|
|
"perf: Dynamic interrupt throttling disabled, can hang your system!\n");
|
|
|
WRITE_ONCE(perf_sample_allowed_ns, 0);
|