[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZCGuMzmS0Lz5WX2/@ninjato>
Date: Mon, 27 Mar 2023 16:54:43 +0200
From: Wolfram Sang <wsa@...nel.org>
To: Benjamin Bara <bbara93@...il.com>
Cc: Lee Jones <lee@...nel.org>, rafael.j.wysocki@...el.com,
dmitry.osipenko@...labora.com, jonathanh@...dia.com,
richard.leitner@...ux.dev, treding@...dia.com,
linux-kernel@...r.kernel.org, linux-i2c@...r.kernel.org,
linux-tegra@...r.kernel.org,
Benjamin Bara <benjamin.bara@...data.com>,
stable@...r.kernel.org
Subject: Re: [PATCH v3 2/4] i2c: core: run atomic i2c xfer when !preemptible
> - 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?
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists