linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: linuxppc-dev@lists.ozlabs.org
Cc: Hari Bathini <hbathini@linux.vnet.ibm.com>,
	linuxppc-dev <linuxppc-dev@ozlabs.org>,
	Mahesh J Salgaonkar <mahesh@linux.vnet.ibm.com>
Subject: Re: [PATCH v4 1/3] powerpc/nvram: move generic code for nvram and pstore
Date: Fri, 30 Jan 2015 17:42:45 +0100	[thread overview]
Message-ID: <1939177.TRC136ehpt@wuerfel> (raw)
In-Reply-To: <20150130151400.13976.90106.stgit@localhost.localdomain>

On Friday 30 January 2015 20:44:00 Hari Bathini wrote:
> With minor checks, we can move most of the code for nvram
> under pseries to a common place to be re-used by other
> powerpc platforms like powernv. This patch moves such
> common code to arch/powerpc/kernel/nvram_64.c file.
> 
> Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>

Can you make this y2038-safe in the process, possibly as a
follow-up patch?

> +extern unsigned long last_rtas_event;

time64_t

> +	}
> +	oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION);
> +	oops_hdr->report_length = cpu_to_be16(zipped_len);
> +	oops_hdr->timestamp = cpu_to_be64(get_seconds());
> +	return 0;

ktime_get_real_seconds()

> +static ssize_t nvram_pstore_read(u64 *id, enum pstore_type_id *type,
> +				int *count, struct timespec *time, char **buf,
> +				bool *compressed, struct pstore_info *psi)

This has to remain timespec for now but can later be changed to timespec64
when the API gets changed.

> +		oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION);
> +		oops_hdr->report_length = cpu_to_be16(text_len);
> +		oops_hdr->timestamp = cpu_to_be64(get_seconds());

ktime_get_real_seconds()

	Arnd

  reply	other threads:[~2015-01-30 16:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30 15:13 [PATCH v4 0/3] powerpc/pstore: Add pstore support for nvram partitions Hari Bathini
2015-01-30 15:14 ` [PATCH v4 1/3] powerpc/nvram: move generic code for nvram and pstore Hari Bathini
2015-01-30 16:42   ` Arnd Bergmann [this message]
2015-02-05 18:40     ` Hari Bathini
2015-01-30 15:14 ` [PATCH v4 2/3] pstore: Add pstore type id for PPC64 opal nvram partition Hari Bathini
2015-01-30 15:14 ` [PATCH v4 3/3] pstore: add pstore support on powernv Hari Bathini

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=1939177.TRC136ehpt@wuerfel \
    --to=arnd@arndb.de \
    --cc=hbathini@linux.vnet.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mahesh@linux.vnet.ibm.com \
    /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).