aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-01-18 11:00:14 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2013-01-18 11:00:14 -0500
commitc1cda76c0cfb184ab241c5fbde66f7ca92da8e79 (patch)
treeadbde26904faab8662c70aa7fb224383165c7534
parent92801864bece1ccab9cc8b3ad73c1edb667a27fb (diff)
Remove tasklet::owner field (just commented out).
-rw-r--r--include/linux/interrupt.h3
-rw-r--r--kernel/softirq.c2
-rw-r--r--litmus/litmus_softirq.c12
3 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index 9fc31289a1bb..af52b5c497b9 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -501,10 +501,11 @@ struct tasklet_struct
501 atomic_t count; 501 atomic_t count;
502 void (*func)(unsigned long); 502 void (*func)(unsigned long);
503 unsigned long data; 503 unsigned long data;
504 504#if 0
505#if defined(CONFIG_LITMUS_SOFTIRQD) || defined(CONFIG_LITMUS_PAI_SOFTIRQD) 505#if defined(CONFIG_LITMUS_SOFTIRQD) || defined(CONFIG_LITMUS_PAI_SOFTIRQD)
506 struct task_struct *owner; 506 struct task_struct *owner;
507#endif 507#endif
508#endif
508}; 509};
509 510
510struct tasklet_head 511struct tasklet_head
diff --git a/kernel/softirq.c b/kernel/softirq.c
index b56b35452d0d..4b55daafbbea 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -663,9 +663,11 @@ void tasklet_init(struct tasklet_struct *t,
663 t->func = func; 663 t->func = func;
664 t->data = data; 664 t->data = data;
665 665
666#if 0
666#ifdef CONFIG_LITMUS_SOFTIRQD 667#ifdef CONFIG_LITMUS_SOFTIRQD
667 t->owner = NULL; 668 t->owner = NULL;
668#endif 669#endif
670#endif
669} 671}
670 672
671EXPORT_SYMBOL(tasklet_init); 673EXPORT_SYMBOL(tasklet_init);
diff --git a/litmus/litmus_softirq.c b/litmus/litmus_softirq.c
index 666ea7ed1cb1..a5d61afe7952 100644
--- a/litmus/litmus_softirq.c
+++ b/litmus/litmus_softirq.c
@@ -255,7 +255,7 @@ int launch_klmirqd_thread(char* name, int cpu, klmirqd_callback_t* cb)
255 255
256 256
257 257
258#define KLMIRQD_SLICE_NR_JIFFIES 1 258#define KLMIRQD_SLICE_NR_JIFFIES 4
259#define KLMIRQD_SLICE_NS ((NSEC_PER_SEC / HZ) * KLMIRQD_SLICE_NR_JIFFIES) 259#define KLMIRQD_SLICE_NS ((NSEC_PER_SEC / HZ) * KLMIRQD_SLICE_NR_JIFFIES)
260 260
261static int become_litmus_daemon(struct task_struct* tsk) 261static int become_litmus_daemon(struct task_struct* tsk)
@@ -263,7 +263,7 @@ static int become_litmus_daemon(struct task_struct* tsk)
263 int ret = 0; 263 int ret = 0;
264 264
265 struct rt_task tp = { 265 struct rt_task tp = {
266 .period = KLMIRQD_SLICE_NS, /* dummy 1 second period */ 266 .period = KLMIRQD_SLICE_NS,
267 .relative_deadline = KLMIRQD_SLICE_NS, 267 .relative_deadline = KLMIRQD_SLICE_NS,
268 .exec_cost = KLMIRQD_SLICE_NS, 268 .exec_cost = KLMIRQD_SLICE_NS,
269 .phase = 0, 269 .phase = 0,
@@ -607,7 +607,7 @@ static void do_lit_tasklet(struct klmirqd_info* which,
607 if (tasklet_trylock(t)) { 607 if (tasklet_trylock(t)) {
608 if (!atomic_read(&t->count)) { 608 if (!atomic_read(&t->count)) {
609 609
610 sched_trace_tasklet_begin(t->owner); 610 sched_trace_tasklet_begin(NULL);
611 611
612 if (!test_and_clear_bit(TASKLET_STATE_SCHED, &t->state)) 612 if (!test_and_clear_bit(TASKLET_STATE_SCHED, &t->state))
613 { 613 {
@@ -619,7 +619,7 @@ static void do_lit_tasklet(struct klmirqd_info* which,
619 619
620 atomic_dec(count); 620 atomic_dec(count);
621 621
622 sched_trace_tasklet_end(t->owner, 0ul); 622 sched_trace_tasklet_end(NULL, 0ul);
623 623
624 continue; /* process more tasklets */ 624 continue; /* process more tasklets */
625 } 625 }
@@ -883,7 +883,7 @@ void flush_pending(struct task_struct* tsk)
883 883
884 work_flushed |= LIT_TASKLET_HI; 884 work_flushed |= LIT_TASKLET_HI;
885 885
886 t->owner = NULL; 886// t->owner = NULL;
887 887
888 // WTF? 888 // WTF?
889 if(!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) 889 if(!test_and_set_bit(TASKLET_STATE_SCHED, &t->state))
@@ -923,7 +923,7 @@ void flush_pending(struct task_struct* tsk)
923 923
924 work_flushed |= LIT_TASKLET_LOW; 924 work_flushed |= LIT_TASKLET_LOW;
925 925
926 t->owner = NULL; 926// t->owner = NULL;
927// sched_trace_tasklet_end(owner, 1ul); 927// sched_trace_tasklet_end(owner, 1ul);
928 928
929 if(!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) 929 if(!test_and_set_bit(TASKLET_STATE_SCHED, &t->state))