linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: dsaxena@plexity.net
Cc: Thomas Gleixner <tglx@linutronix.de>, linux-input@vger.kernel.org
Subject: Re: [PATCH] Remove CLOCK_TICK_RATE from analog joystick driver
Date: Thu, 4 Aug 2011 23:40:25 -0700	[thread overview]
Message-ID: <20110805064025.GA31974@core.coreip.homeip.net> (raw)
In-Reply-To: <20110804000640.GC23503@plexity.net>

On Wed, Aug 03, 2011 at 05:06:40PM -0700, Deepak Saxena wrote:
> The analog joystick driver is written for x86 systems. This
> patch updates it to use the the PIT_TICK_RATE value instead
> of CLOCK_TICK_RATE as they are equivalent on x86 and we 
> want to depecrate the later.
> 
> Signed-off-by: Deepak Saxena <dsaxena@linaro.org>

Applied, thank you Deepak.

> ---
>  drivers/input/joystick/analog.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c
> index 9882971..358cd7e 100644
> --- a/drivers/input/joystick/analog.c
> +++ b/drivers/input/joystick/analog.c
> @@ -139,7 +139,7 @@ struct analog_port {
>  #include <linux/i8253.h>
>  
>  #define GET_TIME(x)	do { if (cpu_has_tsc) rdtscl(x); else x = get_time_pit(); } while (0)
> -#define DELTA(x,y)	(cpu_has_tsc ? ((y) - (x)) : ((x) - (y) + ((x) < (y) ? CLOCK_TICK_RATE / HZ : 0)))
> +#define DELTA(x,y)	(cpu_has_tsc ? ((y) - (x)) : ((x) - (y) + ((x) < (y) ? PIT_TICK_RATE / HZ : 0)))
>  #define TIME_NAME	(cpu_has_tsc?"TSC":"PIT")
>  static unsigned int get_time_pit(void)
>  {
> -- 
> 1.7.4.1
> 

-- 
Dmitry

      reply	other threads:[~2011-08-05  6:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-04  0:06 [PATCH] Remove CLOCK_TICK_RATE from analog joystick driver Deepak Saxena
2011-08-05  6:40 ` Dmitry Torokhov [this message]

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=20110805064025.GA31974@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=dsaxena@plexity.net \
    --cc=linux-input@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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;
as well as URLs for NNTP newsgroup(s).