From 1fb9fcfb70aa0b5de7b7e440af0590a5f871341c Mon Sep 17 00:00:00 2001 From: Tobias Bouschen <tobias.bouschen@googlemail.com> Date: Thu, 21 Mar 2019 12:25:02 +0100 Subject: [PATCH] Remove unused defines from perf_error_detection --- kernel/sched/perf_error_detection.c | 3 --- kernel/sched/perf_error_detection.h | 6 ------ 2 files changed, 9 deletions(-) diff --git a/kernel/sched/perf_error_detection.c b/kernel/sched/perf_error_detection.c index e3b44eefd97e..c38c89680387 100644 --- a/kernel/sched/perf_error_detection.c +++ b/kernel/sched/perf_error_detection.c @@ -1,8 +1,6 @@ #include "perf_error_detection.h" #include <linux/smp.h> -#define PERF_SAMPLE_PERIOD_SIZE 100000 - /* * Our understanding of perf so far. Please correct as needed. * @@ -72,7 +70,6 @@ void overflow_handler( printk(KERN_WARNING "PB TASK %llu RAN TOO LONG\n",pb_rq->plan[pb_rq->c_entry].task_id); - } struct perf_event* perf_event_create(struct perf_event_attr *hw_event_uptr, int cpu) diff --git a/kernel/sched/perf_error_detection.h b/kernel/sched/perf_error_detection.h index ae6a341a4432..12fea1f70e5d 100644 --- a/kernel/sched/perf_error_detection.h +++ b/kernel/sched/perf_error_detection.h @@ -1,13 +1,7 @@ #ifndef __PERF_ERROR_DETECTION_H #define __PERF_ERROR_DETECTION_H #include <linux/perf_event.h> -//#include <linux/sched.h> #include "sched.h" -//#include "../../include/linux/signal.h" -//#include <linux/ioctl.h> -//#include "../../include/linux/fs.h" - -//#include <include/linux/smp.h> #endif int init_perf_event(struct plan_entry, struct perf_event **pevent); -- GitLab