Hello community, here is the log from the commit of package itrace checked in at Wed Nov 28 23:14:28 CET 2007. -------- --- arch/ppc/itrace/itrace.changes 2007-10-16 14:29:38.000000000 +0200 +++ /mounts/work_src_done/STABLE/itrace/itrace.changes 2007-11-28 11:47:09.000000000 +0100 @@ -1,0 +2,5 @@ +Wed Nov 28 11:46:59 CET 2007 - olh@suse.de + +- update for 2.6.24 API changes + +------------------------------------------------------------------- New: ---- itrace.get_kernel_vsid.patch itrace.get_property.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ itrace.spec ++++++ --- /var/tmp/diff_new_pack.q23522/_old 2007-11-28 23:13:21.000000000 +0100 +++ /var/tmp/diff_new_pack.q23522/_new 2007-11-28 23:13:21.000000000 +0100 @@ -12,7 +12,7 @@ Name: itrace Version: 0.9 -Release: 105 +Release: 116 %if 0%{?suse_version} > 1020 BuildRequires: binutils-devel %endif @@ -38,6 +38,8 @@ Patch13: itrace.threads-h.patch Patch14: itrace.power6.patch Patch15: itrace.unregister_chrdev-return.patch +Patch16: itrace.get_property.patch +Patch17: itrace.get_kernel_vsid.patch ExclusiveArch: ppc ppc64 Requires: itrace-kmp-ppc64 %suse_kernel_module_package kdump um xen xenpae default smp debug bigsmp iseries64 @@ -102,6 +104,8 @@ %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 -p1 +%patch17 -p1 %build autoreconf -i --force @@ -150,7 +154,10 @@ %{_prefix}/%{_lib}/lib*.so* %{_prefix}/include/* %{_mandir}/*/* + %changelog +* Wed Nov 28 2007 - olh@suse.de +- update for 2.6.24 API changes * Tue Oct 16 2007 - olh@suse.de - fix compile error, unregister_chrdev has no return value * Mon Oct 15 2007 - olh@suse.de ++++++ itrace.get_kernel_vsid.patch ++++++ --- src/driver/ppc64/pi_itrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/src/driver/ppc64/pi_itrace.c +++ b/src/driver/ppc64/pi_itrace.c @@ -77,8 +77,8 @@ struct kprobe irq_hook; struct kprobe exit_hook; #define GET_VSID(addr) (REGION_ID(addr) >= KERNEL_REGION_ID) ? \ - get_kernel_vsid(addr) : \ - get_vsid(current->mm->context.id, addr) + get_kernel_vsid(addr, MMU_SEGSIZE_256M) : \ + get_vsid(current->mm->context.id, addr, user_segment_size(addr)) /* Populate the passed psthook with instruction address, previous instruction * address, and instruction count. */ ++++++ itrace.get_property.patch ++++++ --- src/driver/ppc64/pi_cpuinit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/src/driver/ppc64/pi_cpuinit.c +++ b/src/driver/ppc64/pi_cpuinit.c @@ -64,7 +64,7 @@ int pitrace_cpu_init(void) { unsigned long pvr; struct device_node *cpu_node; - int *fp; + const int *fp; #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22) cpu_node = of_find_node_by_type(NULL, "cpu"); @@ -72,7 +72,11 @@ int pitrace_cpu_init(void) cpu_node = find_type_devices("cpu"); #endif if ( cpu_node ) { +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) + fp = of_get_property(cpu_node, "clock-frequency", NULL); +#else fp = (int *)get_property(cpu_node, "clock-frequency", NULL); +#endif if ( fp ) pi_cpu_khz = *fp/1000000; else ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de