summaryrefslogtreecommitdiffstats
path: root/lib/test_sysctl.c
diff options
context:
space:
mode:
authorD Scott Phillips <scott@os.amperecomputing.com>2022-11-14 13:22:12 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-23 19:57:38 +0100
commitab760791c0cfbb1d7a668f46a135264f56c8f018 (patch)
tree9b511f0d18ede5c8fc0849694af1d1962ed31a87 /lib/test_sysctl.c
parent7b51161696e803fd5f9ad55b20a64c2df313f95c (diff)
downloadlinux-ab760791c0cfbb1d7a668f46a135264f56c8f018.tar.gz
linux-ab760791c0cfbb1d7a668f46a135264f56c8f018.tar.bz2
linux-ab760791c0cfbb1d7a668f46a135264f56c8f018.zip
char: misc: Increase the maximum number of dynamic misc devices to 1048448
On AmpereOne, 128 dynamic misc devices is not enough for the per-cpu coresight_tmc devices. Switch the dynamic minors allocator to an ida and add logic to allocate in the ranges [0..127] and [256..1048575], leaving [128..255] for static misc devices. Dynamic allocations start from 127 growing downwards and then increasing from 256, so device numbering for the first 128 devices remain the same as before. Signed-off-by: D Scott Phillips <scott@os.amperecomputing.com> Link: https://lore.kernel.org/r/20221114212212.9279-1-scott@os.amperecomputing.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_sysctl.c')
0 files changed, 0 insertions, 0 deletions