tools, slub: Fix off-by-one buffer corruption after readlink() call
[linux-2.6/linux-mips.git] / arch / arm / mach-shmobile / localtimer.c
blobad9ccc9900c825bf874b94ebd9fc4e2cb84576d2
1 /*
2 * SMP support for R-Mobile / SH-Mobile - local timer portion
4 * Copyright (C) 2010 Magnus Damm
6 * Based on vexpress, Copyright (C) 2002 ARM Ltd, All Rights Reserved
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 #include <linux/init.h>
13 #include <linux/smp.h>
14 #include <linux/clockchips.h>
15 #include <asm/smp_twd.h>
16 #include <asm/localtimer.h>
19 * Setup the local clock events for a CPU.
21 int __cpuinit local_timer_setup(struct clock_event_device *evt)
23 evt->irq = 29;
24 twd_timer_setup(evt);
25 return 0;