Commit 21a246dc authored by Anton Blanchard's avatar Anton Blanchard

ppc64: define SMP_CACHE_BYTES and cleanup HZ handling

parent 73f46964
......@@ -11,4 +11,6 @@
#define L1_CACHE_SHIFT 7
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#endif
......@@ -8,18 +8,14 @@
* 2 of the License, or (at your option) any later version.
*/
#ifndef HZ
#define HZ 1024
#ifdef __KERNEL__
#if HZ == 100
/* ppc (like X86) is defined to provide userspace with a world where HZ=100
We have to do this, (x*const)/const2 isnt optimised out because its not
a null operation as it might overflow.. */
#define hz_to_std(a) (a)
#else
#define hz_to_std(a) ((a)*(100/HZ)+((a)*(100%HZ))/HZ)
#endif
# define HZ 1000 /* Internal kernel timer frequency */
# define USER_HZ 100 /* .. some user interfaces are in "ticks" */
# define CLOCKS_PER_SEC (USER_HZ) /* like times() */
#endif
#ifndef HZ
#define HZ 100
#endif
#define EXEC_PAGESIZE 4096
......@@ -34,8 +30,4 @@
#define MAXHOSTNAMELEN 64 /* max length of hostname */
#ifdef __KERNEL__
# define CLOCKS_PER_SEC HZ /* frequency at which times() counts */
#endif
#endif /* _ASM_PPC64_PARAM_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment