[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-bf48cfee5efb3f86c0620acd76b873a6f50bb11a@git.kernel.org>
Date: Mon, 11 Feb 2013 04:23:36 -0800
From: tip-bot for Sasha Levin <sasha.levin@...cle.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, sasha.levin@...cle.com,
hpa@...or.com, mingo@...nel.org, a.p.zijlstra@...llo.nl,
torvalds@...ux-foundation.org, akpm@...ux-foundation.org,
tglx@...utronix.de
Subject: [tip:core/locking] perf: Stop using liblockdep_init()
and liblockdep_set_thread()
Commit-ID: bf48cfee5efb3f86c0620acd76b873a6f50bb11a
Gitweb: http://git.kernel.org/tip/bf48cfee5efb3f86c0620acd76b873a6f50bb11a
Author: Sasha Levin <sasha.levin@...cle.com>
AuthorDate: Sat, 9 Feb 2013 19:39:33 -0500
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Mon, 11 Feb 2013 10:12:37 +0100
perf: Stop using liblockdep_init() and liblockdep_set_thread()
These functions are no longer needed by liblockdep, drop them.
Signed-off-by: Sasha Levin <sasha.levin@...cle.com>
Cc: jamie.iles@...cle.com
Cc: penberg@...nel.org
Cc: acme@...stprotocols.net
Cc: paulus@...ba.org
Cc: namhyung@...nel.org
Cc: peterz@...radead.org
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Thomas Gleixner <tglx@...utronix.de>
Link: http://lkml.kernel.org/r/1360456781-32462-3-git-send-email-sasha.levin@oracle.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
tools/perf/builtin-sched.c | 2 --
tools/perf/builtin-top.c | 4 ----
tools/perf/config/feature-tests.mak | 1 -
tools/perf/perf.c | 3 ---
tools/perf/util/liblockdep.h | 2 --
5 files changed, 12 deletions(-)
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index 53d9225..e1f0c44 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -468,8 +468,6 @@ static void *thread_func(void *ctx)
char comm2[22];
int fd;
- liblockdep_set_thread();
-
free(parms);
sprintf(comm2, ":%s", this_task->comm);
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index c9b99ef..c9ff395 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -588,8 +588,6 @@ static void *display_thread_tui(void *arg)
.refresh = top->delay_secs,
};
- liblockdep_set_thread();
-
perf_top__sort_new_samples(top);
/*
@@ -615,8 +613,6 @@ static void *display_thread(void *arg)
struct perf_top *top = arg;
int delay_msecs, c;
- liblockdep_set_thread();
-
tcgetattr(0, &save);
tc = save;
tc.c_lflag &= ~(ICANON | ECHO);
diff --git a/tools/perf/config/feature-tests.mak b/tools/perf/config/feature-tests.mak
index 1f5a37e..20f8f7b 100644
--- a/tools/perf/config/feature-tests.mak
+++ b/tools/perf/config/feature-tests.mak
@@ -223,7 +223,6 @@ define SOURCE_LIBLOCKDEP
int main(void)
{
- liblockdep_init();
return 0;
}
endef
diff --git a/tools/perf/perf.c b/tools/perf/perf.c
index ddbd315..0f661fb 100644
--- a/tools/perf/perf.c
+++ b/tools/perf/perf.c
@@ -446,9 +446,6 @@ int main(int argc, const char **argv)
{
const char *cmd;
- liblockdep_init();
- liblockdep_set_thread();
-
page_size = sysconf(_SC_PAGE_SIZE);
cmd = perf_extract_argv0_path(argv[0]);
diff --git a/tools/perf/util/liblockdep.h b/tools/perf/util/liblockdep.h
index 628a2f5..798263f 100644
--- a/tools/perf/util/liblockdep.h
+++ b/tools/perf/util/liblockdep.h
@@ -5,7 +5,5 @@
#else
#define LIBLOCKDEP_PTHREAD_MUTEX_INITIALIZER(mtx) PTHREAD_MUTEX_INITIALIZER
-#define liblockdep_init()
-#define liblockdep_set_thread()
#endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists