LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] sched: replace rq->bkl_count with rq->rq_sched_info.bkl_count
@ 2011-01-14 7:57 Yong Zhang
2011-01-17 13:25 ` Peter Zijlstra
2011-01-18 19:05 ` [tip:sched/urgent] sched: Replace " tip-bot for Yong Zhang
0 siblings, 2 replies; 3+ messages in thread
From: Yong Zhang @ 2011-01-14 7:57 UTC (permalink / raw)
To: linux-kernel; +Cc: Ingo Molnar, Peter Zijlstra
Now rq->rq_sched_info.bkl_count is not used for rq, scroll
rq->bkl_count into it. Thus we can save some space for rq.
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
---
kernel/sched.c | 5 +----
kernel/sched_debug.c | 4 +++-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index ea3e5ef..3d6df21 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -553,9 +553,6 @@ struct rq {
/* try_to_wake_up() stats */
unsigned int ttwu_count;
unsigned int ttwu_local;
-
- /* BKL stats */
- unsigned int bkl_count;
#endif
};
@@ -3887,7 +3884,7 @@ static inline void schedule_debug(struct task_struct *prev)
schedstat_inc(this_rq(), sched_count);
#ifdef CONFIG_SCHEDSTATS
if (unlikely(prev->lock_depth >= 0)) {
- schedstat_inc(this_rq(), bkl_count);
+ schedstat_inc(this_rq(), rq_sched_info.bkl_count);
schedstat_inc(prev, sched_info.bkl_count);
}
#endif
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 1dfae3d..8ee0aa7 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -262,9 +262,11 @@ static void print_cpu(struct seq_file *m, int cpu)
P(ttwu_count);
P(ttwu_local);
- P(bkl_count);
+ SEQ_printf(m, " .%-30s: %d\n", "bkl_count",
+ rq->rq_sched_info.bkl_count);
#undef P
+#undef P64
#endif
print_cfs_stats(m, cpu);
print_rt_stats(m, cpu);
--
1.7.0.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sched: replace rq->bkl_count with rq->rq_sched_info.bkl_count
2011-01-14 7:57 [PATCH] sched: replace rq->bkl_count with rq->rq_sched_info.bkl_count Yong Zhang
@ 2011-01-17 13:25 ` Peter Zijlstra
2011-01-18 19:05 ` [tip:sched/urgent] sched: Replace " tip-bot for Yong Zhang
1 sibling, 0 replies; 3+ messages in thread
From: Peter Zijlstra @ 2011-01-17 13:25 UTC (permalink / raw)
To: Yong Zhang; +Cc: linux-kernel, Ingo Molnar
On Fri, 2011-01-14 at 15:57 +0800, Yong Zhang wrote:
> Now rq->rq_sched_info.bkl_count is not used for rq, scroll
> rq->bkl_count into it. Thus we can save some space for rq.
>
> Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Peter Zijlstra <peterz@infradead.org>
Thanks, applied
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:sched/urgent] sched: Replace rq->bkl_count with rq->rq_sched_info.bkl_count
2011-01-14 7:57 [PATCH] sched: replace rq->bkl_count with rq->rq_sched_info.bkl_count Yong Zhang
2011-01-17 13:25 ` Peter Zijlstra
@ 2011-01-18 19:05 ` tip-bot for Yong Zhang
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Yong Zhang @ 2011-01-18 19:05 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, a.p.zijlstra, yong.zhang0, tglx, mingo
Commit-ID: fce2097983d914ea8c2338efc6f6e9bb737f6ae4
Gitweb: http://git.kernel.org/tip/fce2097983d914ea8c2338efc6f6e9bb737f6ae4
Author: Yong Zhang <yong.zhang0@gmail.com>
AuthorDate: Fri, 14 Jan 2011 15:57:39 +0800
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Tue, 18 Jan 2011 15:09:43 +0100
sched: Replace rq->bkl_count with rq->rq_sched_info.bkl_count
Now rq->rq_sched_info.bkl_count is not used for rq, scroll
rq->bkl_count into it. Thus we can save some space for rq.
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1294991859-13246-1-git-send-email-yong.zhang0@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
kernel/sched.c | 5 +----
kernel/sched_debug.c | 4 +++-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index 6cbff6b..0a169a8 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -553,9 +553,6 @@ struct rq {
/* try_to_wake_up() stats */
unsigned int ttwu_count;
unsigned int ttwu_local;
-
- /* BKL stats */
- unsigned int bkl_count;
#endif
};
@@ -3887,7 +3884,7 @@ static inline void schedule_debug(struct task_struct *prev)
schedstat_inc(this_rq(), sched_count);
#ifdef CONFIG_SCHEDSTATS
if (unlikely(prev->lock_depth >= 0)) {
- schedstat_inc(this_rq(), bkl_count);
+ schedstat_inc(this_rq(), rq_sched_info.bkl_count);
schedstat_inc(prev, sched_info.bkl_count);
}
#endif
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index e4d3725..eb6cb8e 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -296,9 +296,11 @@ static void print_cpu(struct seq_file *m, int cpu)
P(ttwu_count);
P(ttwu_local);
- P(bkl_count);
+ SEQ_printf(m, " .%-30s: %d\n", "bkl_count",
+ rq->rq_sched_info.bkl_count);
#undef P
+#undef P64
#endif
spin_lock_irqsave(&sched_debug_lock, flags);
print_cfs_stats(m, cpu);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-18 19:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-14 7:57 [PATCH] sched: replace rq->bkl_count with rq->rq_sched_info.bkl_count Yong Zhang
2011-01-17 13:25 ` Peter Zijlstra
2011-01-18 19:05 ` [tip:sched/urgent] sched: Replace " tip-bot for Yong Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).