• Grant Likely's avatar
    Revert "of: Feed entire flattened device tree into the random pool" · b920ecc8
    Grant Likely authored
    This reverts commit 109b6236.
    
    Tim Bird expressed concern that this will have a bad effect on boot
    time, and while simple tests have shown it to be okay with simple tree,
    a device tree blob can potentially be quite large and
    add_device_randomness() is not a fast function. Rather than do this for
    all platforms unconditionally, I'm reverting this patch and would like
    to see it revisited. Instead of feeding the entire tree into the random
    pool, it would probably be appropriate to hash the tree and feed the
    hash result into the pool. There really isn't a lot of randomness in a
    device tree anyway. In the majority of cases only a handful of
    properties are going to be different between machines with the same
    baseboard.
    Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
    b920ecc8
fdt.c 20.2 KB