diff options
author | Graf Yang <graf.yang@analog.com> | 2009-01-07 10:14:38 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:38 -0500 |
commit | 7be138838f2a0c1e1212890481ff9215d3d0fdca (patch) | |
tree | fc28fb2f2166ac3c9e4ce906b19566db7eed8ecd /arch/blackfin | |
parent | 172e65e778ad500da26d59965750966e1ac7be51 (diff) |
Blackfin arch: Clean oprofile build path for blackfin
[Mike Frysinger <vapier.adi@gmail.com>: scrub comment header]
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/Makefile | 4 | ||||
-rw-r--r-- | arch/blackfin/oprofile/Makefile | 2 | ||||
-rw-r--r-- | arch/blackfin/oprofile/bfin_oprofile.c | 18 | ||||
-rw-r--r-- | arch/blackfin/oprofile/common.c | 41 |
4 files changed, 21 insertions, 44 deletions
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile index 558241e5ccc3..e550c8d46066 100644 --- a/arch/blackfin/Makefile +++ b/arch/blackfin/Makefile | |||
@@ -107,10 +107,10 @@ else | |||
107 | core-y += arch/$(ARCH)/kernel/cplb-nompu/ | 107 | core-y += arch/$(ARCH)/kernel/cplb-nompu/ |
108 | endif | 108 | endif |
109 | 109 | ||
110 | libs-y += arch/$(ARCH)/lib/ | ||
111 | |||
112 | drivers-$(CONFIG_OPROFILE) += arch/$(ARCH)/oprofile/ | 110 | drivers-$(CONFIG_OPROFILE) += arch/$(ARCH)/oprofile/ |
113 | 111 | ||
112 | libs-y += arch/$(ARCH)/lib/ | ||
113 | |||
114 | machdirs := $(patsubst %,arch/blackfin/mach-%/, $(machine-y)) | 114 | machdirs := $(patsubst %,arch/blackfin/mach-%/, $(machine-y)) |
115 | 115 | ||
116 | KBUILD_CFLAGS += -Iarch/$(ARCH)/include/ | 116 | KBUILD_CFLAGS += -Iarch/$(ARCH)/include/ |
diff --git a/arch/blackfin/oprofile/Makefile b/arch/blackfin/oprofile/Makefile index f11749078b53..c70af3a01297 100644 --- a/arch/blackfin/oprofile/Makefile +++ b/arch/blackfin/oprofile/Makefile | |||
@@ -10,4 +10,4 @@ DRIVER_OBJS := $(addprefix ../../../drivers/oprofile/, \ | |||
10 | oprofilefs.o oprofile_stats.o \ | 10 | oprofilefs.o oprofile_stats.o \ |
11 | timer_int.o ) | 11 | timer_int.o ) |
12 | 12 | ||
13 | oprofile-y := $(DRIVER_OBJS) common.o | 13 | oprofile-y := $(DRIVER_OBJS) bfin_oprofile.o |
diff --git a/arch/blackfin/oprofile/bfin_oprofile.c b/arch/blackfin/oprofile/bfin_oprofile.c new file mode 100644 index 000000000000..c3b9713b23f8 --- /dev/null +++ b/arch/blackfin/oprofile/bfin_oprofile.c | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * bfin_oprofile.c - Blackfin oprofile code | ||
3 | * | ||
4 | * Copyright 2004-2008 Analog Devices Inc. | ||
5 | * Licensed under the GPL-2 or later. | ||
6 | */ | ||
7 | |||
8 | #include <linux/oprofile.h> | ||
9 | #include <linux/init.h> | ||
10 | |||
11 | int __init oprofile_arch_init(struct oprofile_operations *ops) | ||
12 | { | ||
13 | return -1; | ||
14 | } | ||
15 | |||
16 | void oprofile_arch_exit(void) | ||
17 | { | ||
18 | } | ||
diff --git a/arch/blackfin/oprofile/common.c b/arch/blackfin/oprofile/common.c deleted file mode 100644 index beace4fb22e1..000000000000 --- a/arch/blackfin/oprofile/common.c +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /* | ||
2 | * File: arch/blackfin/oprofile/common.c | ||
3 | * Based on: arch/alpha/oprofile/common.c | ||
4 | * Author: Anton Blanchard <anton@au.ibm.com> | ||
5 | * | ||
6 | * Created: | ||
7 | * Description: | ||
8 | * | ||
9 | * Modified: | ||
10 | * Copyright (C) 2004 Anton Blanchard <anton@au.ibm.com>, IBM | ||
11 | * Copyright 2004-2006 Analog Devices Inc. | ||
12 | * | ||
13 | * Bugs: Enter bugs at http://blackfin.uclinux.org/ | ||
14 | * | ||
15 | * This program is free software; you can redistribute it and/or modify | ||
16 | * it under the terms of the GNU General Public License as published by | ||
17 | * the Free Software Foundation; either version 2 of the License, or | ||
18 | * (at your option) any later version. | ||
19 | * | ||
20 | * This program is distributed in the hope that it will be useful, | ||
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
23 | * GNU General Public License for more details. | ||
24 | * | ||
25 | * You should have received a copy of the GNU General Public License | ||
26 | * along with this program; if not, see the file COPYING, or write | ||
27 | * to the Free Software Foundation, Inc., | ||
28 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
29 | */ | ||
30 | |||
31 | #include <linux/oprofile.h> | ||
32 | #include <linux/init.h> | ||
33 | |||
34 | int __init oprofile_arch_init(struct oprofile_operations *ops) | ||
35 | { | ||
36 | return -1; | ||
37 | } | ||
38 | |||
39 | void oprofile_arch_exit(void) | ||
40 | { | ||
41 | } | ||