File tree 1 file changed +10
-1
lines changed 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,16 @@ cache_get_priv_group(struct cacheinfo *this_leaf)
26
26
27
27
static struct cacheinfo * get_cacheinfo (u32 level , enum cache_type type )
28
28
{
29
- struct cpu_cacheinfo * this_cpu_ci = get_cpu_cacheinfo (smp_processor_id ());
29
+ /*
30
+ * Using raw_smp_processor_id() elides a preemptability check, but this
31
+ * is really indicative of a larger problem: the cacheinfo UABI assumes
32
+ * that cores have a homonogenous view of the cache hierarchy. That
33
+ * happens to be the case for the current set of RISC-V systems, but
34
+ * likely won't be true in general. Since there's no way to provide
35
+ * correct information for these systems via the current UABI we're
36
+ * just eliding the check for now.
37
+ */
38
+ struct cpu_cacheinfo * this_cpu_ci = get_cpu_cacheinfo (raw_smp_processor_id ());
30
39
struct cacheinfo * this_leaf ;
31
40
int index ;
32
41
You can’t perform that action at this time.
0 commit comments