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 @@ ...@@ -11,4 +11,6 @@
#define L1_CACHE_SHIFT 7 #define L1_CACHE_SHIFT 7
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#endif #endif
...@@ -8,18 +8,14 @@ ...@@ -8,18 +8,14 @@
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#ifndef HZ
#define HZ 1024
#ifdef __KERNEL__ #ifdef __KERNEL__
#if HZ == 100 # define HZ 1000 /* Internal kernel timer frequency */
/* ppc (like X86) is defined to provide userspace with a world where HZ=100 # define USER_HZ 100 /* .. some user interfaces are in "ticks" */
We have to do this, (x*const)/const2 isnt optimised out because its not # define CLOCKS_PER_SEC (USER_HZ) /* like times() */
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
#endif #endif
#ifndef HZ
#define HZ 100
#endif #endif
#define EXEC_PAGESIZE 4096 #define EXEC_PAGESIZE 4096
...@@ -34,8 +30,4 @@ ...@@ -34,8 +30,4 @@
#define MAXHOSTNAMELEN 64 /* max length of hostname */ #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 */ #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