lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 28 Sep 2011 08:48:10 -0400
From:	Mark Salter <msalter@...hat.com>
To:	Thomas Gleixner <tglx@...utronix.de>
Cc:	linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org
Subject: Re: [PATCH v3 11/24] C6X: time management

On Wed, 2011-09-28 at 01:41 +0200, Thomas Gleixner wrote:
> On Tue, 27 Sep 2011, Mark Salter wrote:
> 
> > The C6X architecture includes a 64-bit free running core clock counter which
> > is used as the clocksource. The SoCs have a number of 64-bit programmable
> > timers. One of these is used as the clockevent timer.
> > 
> > + *  Port on Texas Instruments TMS320C6x architecture
> > + *
> > + *  Copyright (C) 2004, 2009, 2010, 2011 Texas Instruments Incorporated
> > + *  Author: Aurelien Jacquiot (aurelien.jacquiot@...una.com)
> > + *
> > + *  Modified for 2.6.34: Mark Salter <msalter@...hat.com>
> 
> Hmm. Who wrote that code and who is assigned the authorship? If the
> original Author is Aurelian, then this patch is missing:
> 
>   - An extra From: ....
> 
>   - A SOB from the orginal author or an explnation why it's not
>     available.
> 
> If not, then this want's to be documented in a proper form.
> 
> Please do not attribute other peoples code to yourself w/o a fcking
> good reason. And porting forward itself is not considered to be one.
> 

Indeed not. I was focused on the code in putting the series together and
completely overlooked the proper attribution and CCs.

> > +/*
> > + * This should be close enough...
> 
> What's the point of that comment ?

None. It shouldn't be there.

> 
> > + */
> > +#define CLOCK_TICK_RATE ((1000 * 1000000UL) / 6)
> > +
> > +/* 64-bit timestamp */
> > +typedef unsigned long long cycles_t;
> 
> ...
> 
> > +static int next_event(unsigned long delta,
> > +		      struct clock_event_device *evt)
> > +{
> > +	soc_writel(soc_readl(&timer->tcr) & ~TCR_ENAMODELO_MASK, &timer->tcr);
> > +	soc_writel(delta - 1, &timer->prdlo);
> > +	soc_writel(0, &timer->cntlo);
> > +	soc_writel(soc_readl(&timer->tcr) | TCR_ENAMODELO_ONCE, &timer->tcr);
> > +
> > +	return 0;
> > +}
> > +
> > +static void set_clock_mode(enum clock_event_mode mode,
> > +			   struct clock_event_device *evt)
> > +{
> 
> So there is no way to disable that thing ?

I will check...

--Mark


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ