Wind River Support Network

HomeDefectsLIN5-4768
Fixed

LIN5-4768 : nanosleep() sleeps only in 10ms in WRLinux 5.0.1.7 with fsl_imx6

Created: Dec 11, 2013    Updated: Dec 19, 2017
Resolved Date: Dec 26, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.11
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

This defect is a question about specification of nanosleep() on fsl_imx6 board.

Steps to Reproduce

WRLinux 5.0.1.7
BSP: fsl_imx6
Board: i.MX6Q Sabre-Lite & Sabre-SD

Customer reported that nanosleep() sleeps only in 10ms.

If setting 3ms to nanosleep(),it sleeps 10ms.
If setting 10ms to nanosleep(),it sleeps 20ms.

I'm thinking that this stems from CONFIG_HZ.

<prj-directory>/build/linux-windriver-3.4-r0/linux/include/asm-generic/param.h
#define HZ  CONFIG_HZ  /* Internal kernel timer frequency */

<prj-directory>/build/ linux-windriver-3.4-r0/linux-fsl-imx6-standard-build/.config
CONFIG_HZ=100

What nanosleep() depends on kernel timer frequency is a specification of fsl_imx6?

Also,according to my customer, this symptoms did not occur In 5.0.1.6
Is there any changes about between 5.0.1.6 and 5.0.1.7?

Other Downloads


Live chat
Online