mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
alpha: Primitive support for CPU power down.
Use WTINT to wait for the next interrupt. Squash the WTINT call if the PALcode doesn't support it (e.g. MILO). No attempt is yet made to skip clock ticks during normal scheduling in order to stay in power down mode longer. Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
committed by
Matt Turner
parent
fddd87d6e1
commit
7f3bbb82e0
@@ -241,6 +241,21 @@ do_entIF(unsigned long type, struct pt_regs *regs)
|
||||
(const char *)(data[1] | (long)data[2] << 32),
|
||||
data[0]);
|
||||
}
|
||||
#ifdef CONFIG_ALPHA_WTINT
|
||||
if (type == 4) {
|
||||
/* If CALL_PAL WTINT is totally unsupported by the
|
||||
PALcode, e.g. MILO, "emulate" it by overwriting
|
||||
the insn. */
|
||||
unsigned int *pinsn
|
||||
= (unsigned int *) regs->pc - 1;
|
||||
if (*pinsn == PAL_wtint) {
|
||||
*pinsn = 0x47e01400; /* mov 0,$0 */
|
||||
imb();
|
||||
regs->r0 = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif /* ALPHA_WTINT */
|
||||
die_if_kernel((type == 1 ? "Kernel Bug" : "Instruction fault"),
|
||||
regs, type, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user