@@ -103,11 +103,11 @@ int populate_cache_leaves(unsigned int cpu)
103
103
if (!np )
104
104
return - ENOENT ;
105
105
106
- if (of_property_read_bool (np , "cache-size" ))
106
+ if (of_property_present (np , "cache-size" ))
107
107
ci_leaf_init (this_leaf ++ , CACHE_TYPE_UNIFIED , level );
108
- if (of_property_read_bool (np , "i-cache-size" ))
108
+ if (of_property_present (np , "i-cache-size" ))
109
109
ci_leaf_init (this_leaf ++ , CACHE_TYPE_INST , level );
110
- if (of_property_read_bool (np , "d-cache-size" ))
110
+ if (of_property_present (np , "d-cache-size" ))
111
111
ci_leaf_init (this_leaf ++ , CACHE_TYPE_DATA , level );
112
112
113
113
prev = np ;
@@ -120,11 +120,11 @@ int populate_cache_leaves(unsigned int cpu)
120
120
break ;
121
121
if (level <= levels )
122
122
break ;
123
- if (of_property_read_bool (np , "cache-size" ))
123
+ if (of_property_present (np , "cache-size" ))
124
124
ci_leaf_init (this_leaf ++ , CACHE_TYPE_UNIFIED , level );
125
- if (of_property_read_bool (np , "i-cache-size" ))
125
+ if (of_property_present (np , "i-cache-size" ))
126
126
ci_leaf_init (this_leaf ++ , CACHE_TYPE_INST , level );
127
- if (of_property_read_bool (np , "d-cache-size" ))
127
+ if (of_property_present (np , "d-cache-size" ))
128
128
ci_leaf_init (this_leaf ++ , CACHE_TYPE_DATA , level );
129
129
levels = level ;
130
130
}
0 commit comments