- 24 Feb, 2004 4 commits
-
-
Randy Dunlap authored
Domen Puncer schrieb: > > Just some suggestions... > >> #define ELEMENTS_OF(X) (sizeof(X) / sizeof((X)[0])) > > Remove this define and s/ELEMENTS_OF/ARRAY_SIZE/g > There are more occurances of redundant ARRAY_SIZEs in the kernel. I will keep that in mind! > > >>@@ -847,7 +845,7 @@ >> static int allocate_buffers(struct strip *strip_info, int mtu) >> { >> struct net_device *dev = strip_info->dev; >>- int sx_size = MAX(STRIP_ENCAP_SIZE(MAX_RECV_MTU), 4096); >>+ int sx_size = max((int)STRIP_ENCAP_SIZE(MAX_RECV_MTU), 4096); > > > max_t? Changed that to max_t and min_t. A newbie queston: What should when be preferred and why?
-
Randy Dunlap authored
When !CONFIG_PROC_FS, I'm getting this warning: drivers/net/wireless/strip.c:1169: warning: `strip_seq_fops' defined but not used
-
Randy Dunlap authored
-
Randy Dunlap authored
-
- 23 Feb, 2004 36 commits
-
-
bk://bk.linux1394.org/ieee1394-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.5/linux
-
Ben Collins authored
-
Ben Collins authored
-
Ben Collins authored
-
Ben Collins authored
-
Ben Collins authored
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> There were a number of bugs in our cmd_line handling: - We were looking at cmd_line after it had been tokenised. Use saved_command line instead - Use strlcpy instead of memcpy/explicit NULL set. - Remove magic numbers in iseries cmd_line parsing
-
Ben Collins authored
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> UP compile fixes.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Restore the old cpu names in /proc/cpuinfo, some applications parse this field.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Some trivial oops cleanups.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Set node 0 online, otherwise the recent cpu/memory topology stuff will oops on a non NUMA machine.
-
Andrew Morton authored
From: Linda Xie <lxiep@us.ibm.com> set err to -ENODEV when a new node doesn't have "interrupt" property.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> __get_SP used to be a function call which meant we allocated a stack frame before calling it. This meant the SP it returned was one frame below the current function. Lets call that bogusSP (and the real one SP). The new dump_stack was being tail call optimised so it remained one frame above bogusSP. dump_stack would then store below SP (as the ABI allows us to) and would stomp over the back link that bogusSP pointed to (__get_SP had set the back link up so it worked sometimes, just not all the time). Fix this by just making __get_SP an inline that returns the current SP.
-
Andrew Morton authored
From: Stephen Rothwell <sfr@canb.auug.org.au> I think Ben introduced this new file and iSeries doesn't need it.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Another decent optimisation found in the ia64 port, dont take the irq descriptor lock or do the note_interrupt stuff on PER_CPU irqs (ie IPIs).
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Clean up per cpu usage in segment table code.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Make a number of segment table functions static. Clean up one duplicated slbia.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Add cpus and NUMA memory nodes to sysfs. Also add cpu physical id.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> The might_sleep infrastructure doesnt like our get_users in the backtrace code, we often end up with might_sleep warnings inside might_sleep warnings. Instead just be careful about pointers before dereferencing them. Also remove the hack where we only printed the bottom 32bits of the WCHAN value.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> This adds stack overflow debugging much like x86. Its pretty agressive and checks if > 8kB out of 16kB of stack is used.
-
Andrew Morton authored
From: Rusty Russell <rusty@rustcorp.com.au> This cleans up the rtasd logic, and also makes it hotplug CPU safe.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> smp_message_pass has a few args that are never used. Remove em. Also add memory missing memory barrier in smp_call_function_interrupt.
-
Andrew Morton authored
From: Rusty Russell <rusty@rustcorp.com.au> 1) Check for cpuids >= NR_CPUS in prom_hold_cpus: we previously overflowed arrays when this happened, and checking it here ensures that it doesn't happen elsewhere. Still move processors to secondary_hold (out of OF), but we won't release them. 2) smp_iSeries_message_pass and smp_xics_message_pass don't need to iterate if given a specific CPU: cleanup and fix. 3) kick_cpu variants don't need to check cpu range (caller is screwed anyway if this happened): replaced with BUG_ON for now. 4) smp_openpic_probe and smp_xics_probe can use cpus_weight(): it's faster and simpler. 5) User for_each_cpu/for_each_online_cpu as appropriate.
-
Andrew Morton authored
From: Hollis Blanchard <hollisb@us.ibm.com> fix warning and compile error without CONFIG_SMP
-
Andrew Morton authored
From: Dave Boutcher <sleddog@us.ibm.com> fix naming collision with asm-ppc64/vio.h. The define would be set there and this file would not get pulled in.
-
Andrew Morton authored
From: Olaf Hering <olh@suse.de> Fix for valid nvram rtas tokens.
-
Andrew Morton authored
From: Jake Moilanen <moilanen@austin.ibm.com> Add 970FX entry into the cputable.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Be like x86 and enable -funit-at-a-time. Use the check_gcc hook when enabling -mcpu=power4/-mtune=power4.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Add DEBUG_STACK_USAGE to ppc64
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org print useful flags in oops, like x86
-
Andrew Morton authored
From: Jeremy Kerr <jk@ozlabs.org> Add a ppc64 archhelp.
-
Andrew Morton authored
From: Dave Hansen <haveblue@us.ibm.com> Allow CROSS32_COMPILE to be set via environment variable
-
Andrew Morton authored
From: Nathan Fontenot <nfont@austin.ibm.com> Add log_rtas_error(), to be called in the event that a rtas call returns a hardware error (-1) so we can log additional information about the hardware error.
-
Andrew Morton authored
From: Nathan Fontenot <nfont@austin.ibm.com> Add call to rtas to retrieve slot-error-detail information and log this data to nvram in an EEH event.
-
Andrew Morton authored
From: Anton Blanchard <anton@samba.org> Fix for ppc64 SMT enablement bug provided by Jimi Xenidis and Michael Day
-