mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 17:40:54 +07:00
3341323bb4
There is no ioremap'ing or anything in timeriomem-rng.c as I foolishly used already remapped virtual addresses instead of passing the physical address to be polled. This patch fixes this flaw and lets developers do the Right Thing(tm). Signed-off-by: Alexander Clouter <alex@digriz.org.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
22 lines
497 B
C
22 lines
497 B
C
/*
|
|
* linux/include/linux/timeriomem-rng.h
|
|
*
|
|
* Copyright (c) 2009 Alexander Clouter <alex@digriz.org.uk>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <linux/completion.h>
|
|
|
|
struct timeriomem_rng_data {
|
|
struct completion completion;
|
|
unsigned int present:1;
|
|
|
|
void __iomem *address;
|
|
|
|
/* measures in usecs */
|
|
unsigned int period;
|
|
};
|