/* * CPU <-> hardware queue mapping helpers * * Copyright (C) 2013-2014 Jens Axboe */ #include <linux/kernel.h> #include <linux/threads.h> #include <linux/module.h> #include <linux/mm.h> #include <linux/smp.h> #include <linux/cpu.h> #include <linux/blk-mq.h> #include "blk.h" #include "blk-mq.h"
static int cpu_to_queue_index(unsigned int nr_queues, const int cpu) { /* * Non present CPU will be mapped to queue index 0. */ if (!cpu_present(cpu)) return 0; return cpu % nr_queues; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jens Axboe | 18 | 58.06% | 1 | 33.33% |
Max Gurtovoy | 11 | 35.48% | 1 | 33.33% |
Christoph Hellwig | 2 | 6.45% | 1 | 33.33% |
Total | 31 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jens Axboe | 35 | 97.22% | 1 | 50.00% |
Bartosz Golaszewski | 1 | 2.78% | 1 | 50.00% |
Total | 36 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jens Axboe | 70 | 68.63% | 1 | 33.33% |
Christoph Hellwig | 17 | 16.67% | 1 | 33.33% |
Max Gurtovoy | 15 | 14.71% | 1 | 33.33% |
Total | 102 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jens Axboe | 41 | 93.18% | 1 | 50.00% |
Raghavendra K T | 3 | 6.82% | 1 | 50.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jens Axboe | 193 | 78.14% | 3 | 33.33% |
Max Gurtovoy | 26 | 10.53% | 1 | 11.11% |
Christoph Hellwig | 24 | 9.72% | 3 | 33.33% |
Raghavendra K T | 3 | 1.21% | 1 | 11.11% |
Bartosz Golaszewski | 1 | 0.40% | 1 | 11.11% |
Linus Torvalds | 0.00% | 0 | 0.00% | |
Total | 247 | 100.00% | 9 | 100.00% |