mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
Move do_irqinfo() to common/cmd_irq.c
cmd_irq.c is a much better home and it is already conditionally compiled based on CONFIG_CMD_IRQ. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
a5dd4dc64f
commit
c253122395
@@ -47,3 +47,12 @@ U_BOOT_CMD(
|
|||||||
"enable or disable interrupts",
|
"enable or disable interrupts",
|
||||||
"[on, off]"
|
"[on, off]"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* Implemented in $(CPU)/interrupts.c */
|
||||||
|
int do_irqinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
|
||||||
|
|
||||||
|
U_BOOT_CMD(
|
||||||
|
irqinfo, 1, 1, do_irqinfo,
|
||||||
|
"print information about IRQs",
|
||||||
|
""
|
||||||
|
);
|
||||||
|
@@ -49,17 +49,6 @@ int do_sleep (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Implemented in $(CPU)/interrupts.c */
|
|
||||||
#if defined(CONFIG_CMD_IRQ)
|
|
||||||
int do_irqinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
|
|
||||||
|
|
||||||
U_BOOT_CMD(
|
|
||||||
irqinfo, 1, 1, do_irqinfo,
|
|
||||||
"print information about IRQs",
|
|
||||||
""
|
|
||||||
);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
U_BOOT_CMD(
|
U_BOOT_CMD(
|
||||||
sleep , 2, 1, do_sleep,
|
sleep , 2, 1, do_sleep,
|
||||||
"delay execution for some time",
|
"delay execution for some time",
|
||||||
|
Reference in New Issue
Block a user