Skip to content

Commit

Permalink
Blackfin arch: Clean oprofile build path for blackfin
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
Graf Yang authored and Bryan Wu committed Jan 7, 2009
1 parent 172e65e commit 7be1388
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 44 deletions.
4 changes: 2 additions & 2 deletions arch/blackfin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ else
core-y += arch/$(ARCH)/kernel/cplb-nompu/
endif

libs-y += arch/$(ARCH)/lib/

drivers-$(CONFIG_OPROFILE) += arch/$(ARCH)/oprofile/

libs-y += arch/$(ARCH)/lib/

machdirs := $(patsubst %,arch/blackfin/mach-%/, $(machine-y))

KBUILD_CFLAGS += -Iarch/$(ARCH)/include/
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/oprofile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ DRIVER_OBJS := $(addprefix ../../../drivers/oprofile/, \
oprofilefs.o oprofile_stats.o \
timer_int.o )

oprofile-y := $(DRIVER_OBJS) common.o
oprofile-y := $(DRIVER_OBJS) bfin_oprofile.o
18 changes: 18 additions & 0 deletions arch/blackfin/oprofile/bfin_oprofile.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* bfin_oprofile.c - Blackfin oprofile code
*
* Copyright 2004-2008 Analog Devices Inc.
* Licensed under the GPL-2 or later.
*/

#include <linux/oprofile.h>
#include <linux/init.h>

int __init oprofile_arch_init(struct oprofile_operations *ops)
{
return -1;
}

void oprofile_arch_exit(void)
{
}
41 changes: 0 additions & 41 deletions arch/blackfin/oprofile/common.c

This file was deleted.

0 comments on commit 7be1388

Please sign in to comment.