diff options
| author | Burt P <pburt0@gmail.com> | 2019-06-30 18:58:07 -0500 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-02 17:36:25 -0700 | 
| commit | 947b4719c8d5ed2525dcacb44966d1c399944a7a (patch) | |
| tree | f02a1b79986a23d27a112fc66ac0adfe67242f5d /modules | |
| parent | 3a78129e6ea2f3ef7030711c2e57357a0378a043 (diff) | |
Memory devices: Direct-RDRAM type detect from DMI
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/devices/dmi_memory.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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); | 
