Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42ca4fb6 authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

FRV: Add basic performance counter support



Add basic performance counter support to the FRV arch.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 00460f41
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ config FRV
	default y
	select HAVE_IDE
	select HAVE_ARCH_TRACEHOOK
	select HAVE_PERF_COUNTERS

config ZONE_DMA
	bool
+17 −0
Original line number Diff line number Diff line
/* FRV performance counter support
 *
 * Copyright (C) 2009 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public Licence
 * as published by the Free Software Foundation; either version
 * 2 of the Licence, or (at your option) any later version.
 */

#ifndef _ASM_PERF_COUNTER_H
#define _ASM_PERF_COUNTER_H

#define PERF_COUNTER_INDEX_OFFSET	0

#endif /* _ASM_PERF_COUNTER_H */
+1 −1
Original line number Diff line number Diff line
@@ -5,4 +5,4 @@
lib-y := \
	__ashldi3.o __lshrdi3.o __muldi3.o __ashrdi3.o __negdi2.o __ucmpdi2.o \
	checksum.o memcpy.o memset.o atomic-ops.o atomic64-ops.o \
	outsl_ns.o outsl_sw.o insl_ns.o insl_sw.o cache.o
	outsl_ns.o outsl_sw.o insl_ns.o insl_sw.o cache.o perf_counter.o
+19 −0
Original line number Diff line number Diff line
/* Performance counter handling
 *
 * Copyright (C) 2009 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public Licence
 * as published by the Free Software Foundation; either version
 * 2 of the Licence, or (at your option) any later version.
 */

#include <linux/perf_counter.h>

/*
 * mark the performance counter as pending
 */
void set_perf_counter_pending(void)
{
}