X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=block%2Fblk.h;h=d45be871329ec67121d2fd41a53289a593f72eb7;hb=232e6686abb011c8a1b4101245814c730efb1f0a;hp=9c12f80882b0a9f9cc4bbafcb25a2c75707e732d;hpb=98961a7e431735c791dbaaf0337029e219a5db5a;p=~andy%2Flinux diff --git a/block/blk.h b/block/blk.h index 9c12f80882b..d45be871329 100644 --- a/block/blk.h +++ b/block/blk.h @@ -166,22 +166,6 @@ static inline int queue_congestion_off_threshold(struct request_queue *q) return q->nr_congestion_off; } -static inline int blk_cpu_to_group(int cpu) -{ - int group = NR_CPUS; -#ifdef CONFIG_SCHED_MC - const struct cpumask *mask = cpu_coregroup_mask(cpu); - group = cpumask_first(mask); -#elif defined(CONFIG_SCHED_SMT) - group = cpumask_first(topology_thread_cpumask(cpu)); -#else - return cpu; -#endif - if (likely(group < NR_CPUS)) - return group; - return cpu; -} - /* * Contribute to IO statistics IFF: *