lkml.org 
[lkml]   [2021]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4 0/2] add support for GPIO based counter
From
Date
On 1/27/21 7:44 AM, Oleksij Rempel wrote:
>>> changes v3:
>>> - convert counter to atomic_t
>>
>> What's the guaranteed width of atomic_t? IIRC a long time ago it was 24 bit only....
>
> 32 bits. The counter is wrapped after 4294967295

Note: This is only true for >= v2.6.3 :D

https://lwn.net/Articles/71732/

Feeling old,
Marc

--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2021-01-27 08:17    [W:0.094 / U:0.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site