diff options
Diffstat (limited to 'litmus/sched_task_trace.c')
-rw-r--r-- | litmus/sched_task_trace.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c index e5098ddb1ec9..7ef7b2889b42 100644 --- a/litmus/sched_task_trace.c +++ b/litmus/sched_task_trace.c | |||
@@ -16,8 +16,6 @@ | |||
16 | #include <litmus/ftdev.h> | 16 | #include <litmus/ftdev.h> |
17 | 17 | ||
18 | 18 | ||
19 | /* set MAJOR to 0 to have it dynamically assigned */ | ||
20 | #define FT_TASK_TRACE_MAJOR 253 | ||
21 | #define NO_EVENTS (1 << CONFIG_SCHED_TASK_TRACE_SHIFT) | 19 | #define NO_EVENTS (1 << CONFIG_SCHED_TASK_TRACE_SHIFT) |
22 | 20 | ||
23 | #define now() litmus_clock() | 21 | #define now() litmus_clock() |
@@ -44,7 +42,7 @@ static int __init init_sched_task_trace(void) | |||
44 | printk("Allocated %u sched_trace_xxx() events per CPU " | 42 | printk("Allocated %u sched_trace_xxx() events per CPU " |
45 | "(buffer size: %d bytes)\n", | 43 | "(buffer size: %d bytes)\n", |
46 | NO_EVENTS, (int) sizeof(struct local_buffer)); | 44 | NO_EVENTS, (int) sizeof(struct local_buffer)); |
47 | ftdev_init(&st_dev, THIS_MODULE); | 45 | ftdev_init(&st_dev, THIS_MODULE, "sched_trace"); |
48 | for (i = 0; i < NR_CPUS; i++) { | 46 | for (i = 0; i < NR_CPUS; i++) { |
49 | buf = &per_cpu(st_event_buffer, i); | 47 | buf = &per_cpu(st_event_buffer, i); |
50 | ok += init_ft_buffer(&buf->ftbuf, NO_EVENTS, | 48 | ok += init_ft_buffer(&buf->ftbuf, NO_EVENTS, |
@@ -56,7 +54,7 @@ static int __init init_sched_task_trace(void) | |||
56 | if (ok == NR_CPUS) { | 54 | if (ok == NR_CPUS) { |
57 | st_dev.minor_cnt = NR_CPUS; | 55 | st_dev.minor_cnt = NR_CPUS; |
58 | st_dev.can_open = st_dev_can_open; | 56 | st_dev.can_open = st_dev_can_open; |
59 | return register_ftdev(&st_dev, "sched_trace", FT_TASK_TRACE_MAJOR); | 57 | return register_ftdev(&st_dev); |
60 | } else { | 58 | } else { |
61 | return -EINVAL; | 59 | return -EINVAL; |
62 | } | 60 | } |