diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-21 23:27:52 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-28 13:18:55 +0900 |
commit | b4eaa1cc7ce8203ac9af9184c49c635ce79592b1 (patch) | |
tree | 83d71382fed9cc992cd6a1c23e6ec28fef304f2a /arch/sh64/kernel/led.c | |
parent | 18bc81319b438ae3266e1b2653ce874912dae891 (diff) | |
download | op-kernel-dev-b4eaa1cc7ce8203ac9af9184c49c635ce79592b1.zip op-kernel-dev-b4eaa1cc7ce8203ac9af9184c49c635ce79592b1.tar.gz |
sh: Kill off the rest of arch/sh64/kernel/.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh64/kernel/led.c')
-rw-r--r-- | arch/sh64/kernel/led.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/arch/sh64/kernel/led.c b/arch/sh64/kernel/led.c deleted file mode 100644 index e35d3f6..0000000 --- a/arch/sh64/kernel/led.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * arch/sh64/kernel/led.c - * - * Copyright (C) 2002 Stuart Menefy <stuart.menefy@st.com> - * - * May be copied or modified under the terms of the GNU General Public - * License. See linux/COPYING for more information. - * - * Flash the LEDs - */ -#include <linux/stddef.h> -#include <linux/sched.h> - -void mach_led(int pos, int val); - -/* acts like an actual heart beat -- ie thump-thump-pause... */ -void heartbeat(void) -{ - static unsigned int cnt = 0, period = 0, dist = 0; - - if (cnt == 0 || cnt == dist) { - mach_led(-1, 1); - } else if (cnt == 7 || cnt == dist + 7) { - mach_led(-1, 0); - } - - if (++cnt > period) { - cnt = 0; - - /* - * The hyperbolic function below modifies the heartbeat period - * length in dependency of the current (5min) load. It goes - * through the points f(0)=126, f(1)=86, f(5)=51, f(inf)->30. - */ - period = ((672 << FSHIFT) / (5 * avenrun[0] + - (7 << FSHIFT))) + 30; - dist = period / 4; - } -} - |