aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-12-07 11:12:06 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-07 11:12:06 +0100
commita148c8cf7d6a6eaa586c67c99b5c1982bd3c6cfa (patch)
treea7f988b4e5cc71b88692d04ab0af45e15f030a9d /com32/hdt/hdt-cli.c
parente876d78e8e6eff7411f087ce799383f7e145b28c (diff)
downloadsyslinux-a148c8cf7d6a6eaa586c67c99b5c1982bd3c6cfa.tar.gz
syslinux-a148c8cf7d6a6eaa586c67c99b5c1982bd3c6cfa.tar.xz
syslinux-a148c8cf7d6a6eaa586c67c99b5c1982bd3c6cfa.zip
hdt: Unique hardware detection path
Impact: Hardware detection path is simplified Hardware is detected once, at boot time
Diffstat (limited to 'com32/hdt/hdt-cli.c')
-rw-r--r--com32/hdt/hdt-cli.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 7a4e24db..eb89a34a 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -139,7 +139,6 @@ void set_mode(cli_mode_t mode, struct s_hardware *hardware)
snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_PXE);
break;
case KERNEL_MODE:
- detect_pci(hardware);
hdt_cli.mode = mode;
snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_KERNEL);
break;
@@ -154,19 +153,12 @@ void set_mode(cli_mode_t mode, struct s_hardware *hardware)
case PCI_MODE:
hdt_cli.mode = mode;
snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_PCI);
- if (!hardware->pci_detection)
- cli_detect_pci(hardware);
break;
case CPU_MODE:
hdt_cli.mode = mode;
snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_CPU);
- if (!hardware->dmi_detection)
- detect_dmi(hardware);
- if (!hardware->cpu_detection)
- cpu_detect(hardware);
break;
case DMI_MODE:
- detect_dmi(hardware);
if (!hardware->is_dmi_valid) {
printf("No valid DMI table found, exiting.\n");
break;
@@ -175,12 +167,10 @@ void set_mode(cli_mode_t mode, struct s_hardware *hardware)
snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_DMI);
break;
case DISK_MODE:
- detect_disks(hardware);
hdt_cli.mode = mode;
snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ", CLI_DISK);
break;
case VPD_MODE:
- detect_vpd(hardware);
if (!hardware->is_vpd_valid) {
printf("No valid VPD table found, exiting.\n");
break;