]> Git Repo - linux.git/blobdiff - lib/sbitmap.c
drm/nouveau/kms: Don't change EDID when it hasn't actually changed
[linux.git] / lib / sbitmap.c
index af88d1346dd74cf332b92a7e22442e7035f5d0a2..267aa7709416d61343fdbba05788625617786c62 100644 (file)
@@ -292,8 +292,11 @@ void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m)
 
        for (i = 0; i < sb->map_nr; i++) {
                unsigned long word = READ_ONCE(sb->map[i].word);
 
        for (i = 0; i < sb->map_nr; i++) {
                unsigned long word = READ_ONCE(sb->map[i].word);
+               unsigned long cleared = READ_ONCE(sb->map[i].cleared);
                unsigned int word_bits = READ_ONCE(sb->map[i].depth);
 
                unsigned int word_bits = READ_ONCE(sb->map[i].depth);
 
+               word &= ~cleared;
+
                while (word_bits > 0) {
                        unsigned int bits = min(8 - byte_bits, word_bits);
 
                while (word_bits > 0) {
                        unsigned int bits = min(8 - byte_bits, word_bits);
 
This page took 0.034082 seconds and 4 git commands to generate.