@@ -108,11 +108,11 @@ int populate_cache_leaves(unsigned int cpu)
108
108
if (!np )
109
109
return - ENOENT ;
110
110
111
- if (of_property_read_bool (np , "cache-size" ))
111
+ if (of_property_present (np , "cache-size" ))
112
112
ci_leaf_init (this_leaf ++ , CACHE_TYPE_UNIFIED , level );
113
- if (of_property_read_bool (np , "i-cache-size" ))
113
+ if (of_property_present (np , "i-cache-size" ))
114
114
ci_leaf_init (this_leaf ++ , CACHE_TYPE_INST , level );
115
- if (of_property_read_bool (np , "d-cache-size" ))
115
+ if (of_property_present (np , "d-cache-size" ))
116
116
ci_leaf_init (this_leaf ++ , CACHE_TYPE_DATA , level );
117
117
118
118
prev = np ;
@@ -125,11 +125,11 @@ int populate_cache_leaves(unsigned int cpu)
125
125
break ;
126
126
if (level <= levels )
127
127
break ;
128
- if (of_property_read_bool (np , "cache-size" ))
128
+ if (of_property_present (np , "cache-size" ))
129
129
ci_leaf_init (this_leaf ++ , CACHE_TYPE_UNIFIED , level );
130
- if (of_property_read_bool (np , "i-cache-size" ))
130
+ if (of_property_present (np , "i-cache-size" ))
131
131
ci_leaf_init (this_leaf ++ , CACHE_TYPE_INST , level );
132
- if (of_property_read_bool (np , "d-cache-size" ))
132
+ if (of_property_present (np , "d-cache-size" ))
133
133
ci_leaf_init (this_leaf ++ , CACHE_TYPE_DATA , level );
134
134
levels = level ;
135
135
}
0 commit comments