All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] shared/timeout-ell: Fix timeout_add() implementation
@ 2021-04-15  5:03 Inga Stotland
  2021-04-15  5:43 ` [BlueZ] " bluez.test.bot
  2021-04-22 21:31 ` [PATCH BlueZ] " Gix, Brian
  0 siblings, 2 replies; 3+ messages in thread
From: Inga Stotland @ 2021-04-15  5:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Inga Stotland

Since timeout_add() expects the timeout in milliseconds, the correct
ELL primitive to call is l_timeout_create_ms()
---
 src/shared/timeout-ell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/timeout-ell.c b/src/shared/timeout-ell.c
index 6416d8590..026286926 100644
--- a/src/shared/timeout-ell.c
+++ b/src/shared/timeout-ell.c
@@ -68,7 +68,7 @@ unsigned int timeout_add(unsigned int timeout, timeout_func_t func,
 	data->timeout = timeout;
 
 	while (id == 0 && tries < 3) {
-		to = l_timeout_create(timeout, timeout_callback,
+		to = l_timeout_create_ms(timeout, timeout_callback,
 							data, timeout_destroy);
 		if (!to)
 			break;
-- 
2.26.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [BlueZ] shared/timeout-ell: Fix timeout_add() implementation
  2021-04-15  5:03 [PATCH BlueZ] shared/timeout-ell: Fix timeout_add() implementation Inga Stotland
@ 2021-04-15  5:43 ` bluez.test.bot
  2021-04-22 21:31 ` [PATCH BlueZ] " Gix, Brian
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2021-04-15  5:43 UTC (permalink / raw)
  To: linux-bluetooth, inga.stotland

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

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=467449

---Test result---

Test Summary:
CheckPatch                    PASS      0.36 seconds
GitLint                       PASS      0.11 seconds
Prep - Setup ELL              PASS      45.10 seconds
Build - Prep                  PASS      0.13 seconds
Build - Configure             PASS      7.92 seconds
Build - Make                  PASS      193.52 seconds
Make Check                    PASS      9.37 seconds
Make Dist                     PASS      11.56 seconds
Make Dist - Configure         PASS      5.12 seconds
Make Dist - Make              PASS      84.81 seconds
Build w/ext ELL - Configure   PASS      8.80 seconds
Build w/ext ELL - Make        PASS      197.07 seconds

Details
##############################
Test: CheckPatch - PASS
Desc: Run checkpatch.pl script with rule in .checkpatch.conf

##############################
Test: GitLint - PASS
Desc: Run gitlint with rule in .gitlint

##############################
Test: Prep - Setup ELL - PASS
Desc: Clone, build, and install ELL

##############################
Test: Build - Prep - PASS
Desc: Prepare environment for build

##############################
Test: Build - Configure - PASS
Desc: Configure the BlueZ source tree

##############################
Test: Build - Make - PASS
Desc: Build the BlueZ source tree

##############################
Test: Make Check - PASS
Desc: Run 'make check'

##############################
Test: Make Dist - PASS
Desc: Run 'make dist' and build the distribution tarball

##############################
Test: Make Dist - Configure - PASS
Desc: Configure the source from distribution tarball

##############################
Test: Make Dist - Make - PASS
Desc: Build the source from distribution tarball

##############################
Test: Build w/ext ELL - Configure - PASS
Desc: Configure BlueZ source with '--enable-external-ell' configuration

##############################
Test: Build w/ext ELL - Make - PASS
Desc: Build BlueZ source with '--enable-external-ell' configuration



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH BlueZ] shared/timeout-ell: Fix timeout_add() implementation
  2021-04-15  5:03 [PATCH BlueZ] shared/timeout-ell: Fix timeout_add() implementation Inga Stotland
  2021-04-15  5:43 ` [BlueZ] " bluez.test.bot
@ 2021-04-22 21:31 ` Gix, Brian
  1 sibling, 0 replies; 3+ messages in thread
From: Gix, Brian @ 2021-04-22 21:31 UTC (permalink / raw)
  To: linux-bluetooth, Stotland, Inga

Applied, Thanks

On Wed, 2021-04-14 at 22:03 -0700, Inga Stotland wrote:
> Since timeout_add() expects the timeout in milliseconds, the correct
> ELL primitive to call is l_timeout_create_ms()
> ---
>  src/shared/timeout-ell.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/shared/timeout-ell.c b/src/shared/timeout-ell.c
> index 6416d8590..026286926 100644
> --- a/src/shared/timeout-ell.c
> +++ b/src/shared/timeout-ell.c
> @@ -68,7 +68,7 @@ unsigned int timeout_add(unsigned int timeout, timeout_func_t func,
>  	data->timeout = timeout;
>  
>  	while (id == 0 && tries < 3) {
> -		to = l_timeout_create(timeout, timeout_callback,
> +		to = l_timeout_create_ms(timeout, timeout_callback,
>  							data, timeout_destroy);
>  		if (!to)
>  			break;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-22 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  5:03 [PATCH BlueZ] shared/timeout-ell: Fix timeout_add() implementation Inga Stotland
2021-04-15  5:43 ` [BlueZ] " bluez.test.bot
2021-04-22 21:31 ` [PATCH BlueZ] " Gix, Brian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.