Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a28b460e authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Fix up hw-breakpoints build for API changes.



The event callback handling has been removed in favour of going through a
generic event handler to handle overflows. Follows the x86 change.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 4b4f887f
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -302,7 +302,6 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp,
		return ret;
		return ret;
	}
	}


	if (bp->callback)
	ret = arch_store_info(bp);
	ret = arch_store_info(bp);


	if (ret < 0)
	if (ret < 0)
@@ -368,7 +367,7 @@ static int __kprobes hw_breakpoint_handler(struct die_args *args)
			break;
			break;
		}
		}


		(bp->callback)(bp, args->regs);
		perf_bp_event(bp, args->regs);


		rcu_read_unlock();
		rcu_read_unlock();
	}
	}