Re: [PATCH v3 2/4] i2c: core: run atomic i2c xfer when !preemptible

Wolfram Sang
2023-03-27T14:55:01Z

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

> - return system_state > SYSTEM_RUNNING && irqs_disabled();
> + return system_state > SYSTEM_RUNNING && !preemptible();

For the !CONFIG_PREEMPT_COUNT case, preemptible() is defined 0. So,
don't we lose the irqs_disabled() check in that case?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]