mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Marc Titinger <mtitinger@baylibre.com>,
	knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] iio: ina2xx: give the capture kthread a more useful name string.
Date: Sat, 12 Dec 2015 15:59:20 +0000	[thread overview]
Message-ID: <566C4458.3040108@kernel.org> (raw)
In-Reply-To: <1449852557-3138-2-git-send-email-mtitinger@baylibre.com>

On 11/12/15 16:49, Marc Titinger wrote:
>   PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
>   144     2 root     DW       0   0%  33% [ina226:1-8800us]
>   141     2 root     DW       0   0%  25% [ina226:0-8800us]
>    40     2 root     SW       0   0%  15% [irq/156-4802a00]
>   147     2 root     DW       0   0%   7% [ina226:2-8800us]
>   145     1 root     S     1236   0%   6% dd if /dev/iio:device1 of /dev/null
>   148     1 root     S     1236   0%   4% dd if /dev/iio:device2 of /dev/null
>   149   137 root     R     1244   0%   3% top -d 1
>   142     1 root     S     1236   0%   2% dd if /dev/iio:device0 of /dev/null
> 
> Signed-off-by: Marc Titinger <mtitinger@baylibre.com>
Could have slightly improved your patch, but saying what it was before in the
description but otherwise seems reasonable so applied to the
togreg branch of iio.git - initially pushed out as testing for the
autobuilders to play with it.

Thanks,

Jonathan
> ---
>  drivers/iio/adc/ina2xx-adc.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c
> index fe42872..99afa6e 100644
> --- a/drivers/iio/adc/ina2xx-adc.c
> +++ b/drivers/iio/adc/ina2xx-adc.c
> @@ -542,7 +542,8 @@ int ina2xx_buffer_enable(struct iio_dev *indio_dev)
>  	chip->prev_ns = iio_get_time_ns();
>  
>  	chip->task = kthread_run(ina2xx_capture_thread, (void *)indio_dev,
> -				 "ina2xx-%uus", sampling_us);
> +				 "%s:%d-%uus", indio_dev->name, indio_dev->id,
> +				 sampling_us);
>  
>  	return PTR_ERR_OR_ZERO(chip->task);
>  }
> 


  reply	other threads:[~2015-12-12 15:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-11 16:49 [PATCH 1/3] iio: ina2xx: re-instate a sysfs show/store for the shunt resistor value Marc Titinger
2015-12-11 16:49 ` [PATCH 2/3] iio: ina2xx: give the capture kthread a more useful name string Marc Titinger
2015-12-12 15:59   ` Jonathan Cameron [this message]
2015-12-11 16:49 ` [PATCH 3/3] iio: ina2xx: add support for CHAN_INFO_SCALE Marc Titinger
2015-12-12 17:14   ` Jonathan Cameron
2015-12-14 10:15     ` Marc Titinger
2015-12-12 15:57 ` [PATCH 1/3] iio: ina2xx: re-instate a sysfs show/store for the shunt resistor value Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=566C4458.3040108@kernel.org \
    --to=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mtitinger@baylibre.com \
    --cc=pmeerw@pmeerw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome