Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
* [PATCH v2 08/17] baycom_epp: Replace rdtscl() with native_read_tsc()
       [not found] <cover.1434152603.git.luto@kernel.org>
@ 2015-06-12 23:44 ` Andy Lutomirski
  2015-06-13 10:45   ` walter harms
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Lutomirski @ 2015-06-12 23:44 UTC (permalink / raw)
  To: x86
  Cc: Borislav Petkov, Peter Zijlstra, John Stultz, linux-kernel,
	Len Brown, Huang Rui, Denys Vlasenko, Andy Lutomirski,
	Thomas Sailer, linux-hams

This is only used if BAYCOM_DEBUG is defined.

Cc: Thomas Sailer <t.sailer@alumni.ethz.ch>
Cc: linux-hams@vger.kernel.org
Signed-off-by: Andy Lutomirski <luto@kernel.org>
---
 drivers/net/hamradio/baycom_epp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c
index 83c7cce0d172..44e5c3b5e0af 100644
--- a/drivers/net/hamradio/baycom_epp.c
+++ b/drivers/net/hamradio/baycom_epp.c
@@ -638,7 +638,7 @@ static int receive(struct net_device *dev, int cnt)
 #define GETTICK(x)                                                \
 ({                                                                \
 	if (cpu_has_tsc)                                          \
-		rdtscl(x);                                        \
+		x = (unsigned int)native_read_tsc();		  \
 })
 #else /* __i386__ */
 #define GETTICK(x)
-- 
2.4.2

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

* Re: [PATCH v2 08/17] baycom_epp: Replace rdtscl() with native_read_tsc()
  2015-06-12 23:44 ` [PATCH v2 08/17] baycom_epp: Replace rdtscl() with native_read_tsc() Andy Lutomirski
@ 2015-06-13 10:45   ` walter harms
  2015-06-15 23:15     ` Andy Lutomirski
  0 siblings, 1 reply; 3+ messages in thread
From: walter harms @ 2015-06-13 10:45 UTC (permalink / raw)
  To: Andy Lutomirski
  Cc: x86, Borislav Petkov, Peter Zijlstra, John Stultz, linux-kernel,
	Len Brown, Huang Rui, Denys Vlasenko, Thomas Sailer, linux-hams

Hello,
please add a line what is the difference between V1 and V2.

re,
 wh

Am 13.06.2015 01:44, schrieb Andy Lutomirski:
> This is only used if BAYCOM_DEBUG is defined.
> 
> Cc: Thomas Sailer <t.sailer@alumni.ethz.ch>
> Cc: linux-hams@vger.kernel.org
> Signed-off-by: Andy Lutomirski <luto@kernel.org>
> ---
>  drivers/net/hamradio/baycom_epp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c
> index 83c7cce0d172..44e5c3b5e0af 100644
> --- a/drivers/net/hamradio/baycom_epp.c
> +++ b/drivers/net/hamradio/baycom_epp.c
> @@ -638,7 +638,7 @@ static int receive(struct net_device *dev, int cnt)
>  #define GETTICK(x)                                                \
>  ({                                                                \
>  	if (cpu_has_tsc)                                          \
> -		rdtscl(x);                                        \
> +		x = (unsigned int)native_read_tsc();		  \
>  })
>  #else /* __i386__ */
>  #define GETTICK(x)

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

* Re: [PATCH v2 08/17] baycom_epp: Replace rdtscl() with native_read_tsc()
  2015-06-13 10:45   ` walter harms
@ 2015-06-15 23:15     ` Andy Lutomirski
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Lutomirski @ 2015-06-15 23:15 UTC (permalink / raw)
  To: wharms
  Cc: Andy Lutomirski, X86 ML, Borislav Petkov, Peter Zijlstra,
	John Stultz, linux-kernel@vger.kernel.org, Len Brown, Huang Rui,
	Denys Vlasenko, Thomas Sailer, linux-hams

On Sat, Jun 13, 2015 at 3:45 AM, walter harms <wharms@bfs.de> wrote:
> Hello,
> please add a line what is the difference between V1 and V2.
>

There is none.  v1 was screwed up elsewhere in the series.

This is part of a larger series to clean up the rdtsc inlines and
macros.  I'm hoping for an ack so this can go in through -tip.

Thanks,
Andy

> re,
>  wh
>
> Am 13.06.2015 01:44, schrieb Andy Lutomirski:
>> This is only used if BAYCOM_DEBUG is defined.
>>
>> Cc: Thomas Sailer <t.sailer@alumni.ethz.ch>
>> Cc: linux-hams@vger.kernel.org
>> Signed-off-by: Andy Lutomirski <luto@kernel.org>
>> ---
>>  drivers/net/hamradio/baycom_epp.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c
>> index 83c7cce0d172..44e5c3b5e0af 100644
>> --- a/drivers/net/hamradio/baycom_epp.c
>> +++ b/drivers/net/hamradio/baycom_epp.c
>> @@ -638,7 +638,7 @@ static int receive(struct net_device *dev, int cnt)
>>  #define GETTICK(x)                                                \
>>  ({                                                                \
>>       if (cpu_has_tsc)                                          \
>> -             rdtscl(x);                                        \
>> +             x = (unsigned int)native_read_tsc();              \
>>  })
>>  #else /* __i386__ */
>>  #define GETTICK(x)



-- 
Andy Lutomirski
AMA Capital Management, LLC

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

end of thread, other threads:[~2015-06-15 23:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cover.1434152603.git.luto@kernel.org>
2015-06-12 23:44 ` [PATCH v2 08/17] baycom_epp: Replace rdtscl() with native_read_tsc() Andy Lutomirski
2015-06-13 10:45   ` walter harms
2015-06-15 23:15     ` Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox