From 947b4719c8d5ed2525dcacb44966d1c399944a7a Mon Sep 17 00:00:00 2001 From: Burt P Date: Sun, 30 Jun 2019 18:58:07 -0500 Subject: Memory devices: Direct-RDRAM type detect from DMI Signed-off-by: Burt P --- modules/devices/dmi_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/devices') diff --git a/modules/devices/dmi_memory.c b/modules/devices/dmi_memory.c index ce1ec300..3aab27dd 100644 --- a/modules/devices/dmi_memory.c +++ b/modules/devices/dmi_memory.c @@ -244,8 +244,8 @@ dmi_mem_socket *dmi_mem_socket_new(dmi_handle h) { if (SEQ(s->type, "DDR2")) s->ram_type = DDR2_SDRAM; if (SEQ(s->type, "DDR3")) s->ram_type = DDR3_SDRAM; if (SEQ(s->type, "DDR4")) s->ram_type = DDR4_SDRAM; - if (strcasestr(s->type, "RAMBus") - || strcasestr(s->type, "RDRAM") ) s->ram_type = RAMBUS; + if (SEQ(s->type, "DRDRAM")) s->ram_type = DIRECT_RAMBUS; + if (SEQ(s->type, "RDRAM")) s->ram_type = RAMBUS; if (s->ram_type) dmi_ram_types |= (1 << s->ram_type-1); s->type_detail = dmidecode_match("Type Detail", &dtm, &h); -- cgit v1.2.3