Re: [RFC] mm: Allow ZONE_DMA32 to be disabled via kernel command line
From: Randy Dunlap
Date: Thu Jan 26 2023 - 19:57:58 EST
On 1/26/23 10:51, Dave Hansen wrote:
> On 1/26/23 08:43, Georgi Djakov wrote:
>> From: Chris Goldsworthy <quic_cgoldswo@xxxxxxxxxxx>
>> +static int __init early_disable_dma32(char *buf)
>> +{
>> + if (!buf)
>> + return -EINVAL;
>> +
>> + if (!strcmp(buf, "on"))
>> + disable_dma32 = true;
>> +
>> + return 0;
>> +}
>> +early_param("disable_dma32", early_disable_dma32);
>
> Ick. Is there no way to do this other than a cross-arch copy/paste?
I think that using __setup() instead of early_param() would allow that.
--
~Randy